summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2018-08-15 10:36:10 +0300
committerBasil L. Contovounesios <contovob@tcd.ie>2018-08-15 10:36:10 +0300
commit9b9c8367a3d15f56764ccf5a3e32823348e4034f (patch)
treebc5cf0d8522644cc07adf773b33c9e6f0f5d2188
parent6ed4d3edbe771e586d873b826330f3ef23aa1611 (diff)
downloadbog-9b9c8367a3d15f56764ccf5a3e32823348e4034f.tar.gz
bog-file-ask-on-conflict: Narrow error condition
Be more specific about the type of error that can be handled.
-rw-r--r--bog.el2
1 files changed, 1 insertions, 1 deletions
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