ob-plantuml: raises an error when the :file header argument is not set

* lisp/ob-plantuml.el (org-babel-execute:plantuml):
This commit is contained in:
Eric Schulte 2010-09-07 23:23:08 -06:00
parent dd9d42f515
commit 5bdea686ed
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@
"Execute a block of plantuml code with org-babel. "Execute a block of plantuml code with org-babel.
This function is called by `org-babel-execute-src-block'." This function is called by `org-babel-execute-src-block'."
(let* ((result-params (split-string (or (cdr (assoc :results params)) ""))) (let* ((result-params (split-string (or (cdr (assoc :results params)) "")))
(out-file (cdr (assoc :file params))) (out-file (or (cdr (assoc :file params))
(error "plantuml requires a \":file\" header argument")))
(cmdline (cdr (assoc :cmdline params))) (cmdline (cdr (assoc :cmdline params)))
(in-file (org-babel-temp-file "plantuml-")) (in-file (org-babel-temp-file "plantuml-"))
(cmd (if (not org-plantuml-jar-path) (cmd (if (not org-plantuml-jar-path)