Skip to content

Commit

Permalink
add exit check for synchronous export
Browse files Browse the repository at this point in the history
  • Loading branch information
minyez committed Jul 23, 2024
1 parent c539038 commit e5f2fa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ox-pandoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,11 @@ when the process completes."
,(expand-file-name input-file))))
(message "Running pandoc with args: %s" args)
(if noninteractive
(apply 'call-process `(,org-pandoc-command nil nil nil ,@args))
(let ((exit-status
(apply 'call-process `(,org-pandoc-command nil nil nil ,@args))))
(if (= exit-status 0)
(message "Exported to %s." output-file)
(message "Error occured when exporting to %s, %d" output-file exit-status)))
(let ((process
(apply 'start-process
`("pandoc" ,(generate-new-buffer "*Pandoc*")
Expand Down

0 comments on commit e5f2fa4

Please sign in to comment.