From 9b9c8367a3d15f56764ccf5a3e32823348e4034f Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Wed, 15 Aug 2018 10:36:10 +0300 Subject: bog-file-ask-on-conflict: Narrow error condition Be more specific about the type of error that can be handled. --- bog.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bog.el b/bog.el index aeee49c..add1f06 100644 --- a/bog.el +++ b/bog.el @@ -717,7 +717,7 @@ controls the default string for the prompt." (make-directory dir)) (condition-case nil (rename-file staged-file citekey-file) - (file-error + (file-already-exists (let ((dir (file-name-directory citekey-file)) (new-file-name (file-name-nondirectory -- cgit v1.2.3