Forráskód Böngészése

Merge branch 'maint'

Nicolas Goaziou 7 éve
szülő
commit
4ffddc2a93
1 módosított fájl, 4 hozzáadás és 2 törlés
  1. 4 2
      lisp/org.el

+ 4 - 2
lisp/org.el

@@ -5286,7 +5286,8 @@ is available.  This option applies only if FILE is a URL."
 	;; Move point to after the url-retrieve header.
 	(search-forward "\n\n" nil :move)
 	;; Search for the success code only in the url-retrieve header.
-	(if (save-excursion (re-search-backward "HTTP.*\\s-+200\\s-OK" nil :noerror))
+	(if (save-excursion
+	      (re-search-backward "HTTP.*\\s-+200\\s-OK" nil :noerror))
 	    ;; Update the cache `org--file-cache' and return contents.
 	    (puthash file
 		     (buffer-substring-no-properties (point) (point-max))
@@ -5302,7 +5303,8 @@ is available.  This option applies only if FILE is a URL."
 	      (buffer-string))
 	  (file-error
            (funcall (if noerror #'message #'user-error)
-		    (error-message-string err)))))))))
+		    "Unable to read file %S"
+		    file))))))))
 
 (defun org-extract-log-state-settings (x)
   "Extract the log state setting from a TODO keyword string.