summaryrefslogtreecommitdiff
path: root/lisp/textmodes/org-publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes/org-publish.el')
-rw-r--r--lisp/textmodes/org-publish.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/org-publish.el b/lisp/textmodes/org-publish.el
index e98afaf4a6b..807a844c425 100644
--- a/lisp/textmodes/org-publish.el
+++ b/lisp/textmodes/org-publish.el
@@ -481,7 +481,7 @@ FILENAME is the filename of the file to be published."
(plist (org-publish-get-plist-from-filename filename))
(publishing-function (or (plist-get plist :publishing-function) 'org-publish-org-to-html)))
(if (not project-name)
- (error (format "File %s is not part of any known project." filename)))
+ (error "File %s is not part of any known project." filename))
(when (org-publish-needed-p filename)
(if (listp publishing-function)
;; allow chain of publishing functions
@@ -575,7 +575,7 @@ With prefix argument, force publishing all files in project."
(let* ((project-name (org-publish-get-project-from-filename (buffer-file-name)))
(org-publish-use-timestamps-flag (if force nil t)))
(if (not project-name)
- (error (format "File %s is not part of any known project." (buffer-file-name))))
+ (error "File %s is not part of any known project." (buffer-file-name)))
(org-publish project-name))))