error handling

This commit is contained in:
Rongsong Shen 2018-06-06 15:25:19 +08:00
parent 8cdf1ea3c0
commit 61bef8a376

View File

@ -158,8 +158,8 @@ This function is called by `org-babel-execute-src-block'."
body params
(org-babel-variable-assignments:tikz params)))))
(message cmd)
(tikz-shell-command org-babel-temporary-directory cmd)
(tikz-post-run format in-file out-file)
(when (eq (tikz-shell-command org-babel-temporary-directory cmd) 0)
(tikz-post-run format in-file out-file))
nil)) ;; signal that output has already been written to file
;;;###autoload