Browse Source

Merge branch 'maint'

Nicolas Goaziou 6 years ago
parent
commit
bb53c61816
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/ox-publish.el

+ 2 - 2
lisp/ox-publish.el

@@ -1366,8 +1366,8 @@ does not exist."
   (let ((attr (file-attributes
 	       (expand-file-name (or (file-symlink-p file) file)
 				 (file-name-directory file)))))
-    (if (not attr) (error "No such file: %S" file)
-      (file-attribute-modification-time attr))))
+    (if attr (file-attribute-modification-time attr)
+      (error "No such file: %S" file))))
 
 
 (provide 'ox-publish)