diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-09-07 23:23:08 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-09-07 23:23:08 -0600 |
commit | 5bdea686ed69c7dc14e512f13bff344f1378370a (patch) | |
tree | f069a29b816aa847dff74b15b265542cbce530ac | |
parent | dd9d42f5159c3f0d5c0dce4885f6e47a2801a382 (diff) | |
download | org-mode-5bdea686ed69c7dc14e512f13bff344f1378370a.tar.gz |
ob-plantuml: raises an error when the :file header argument is not set
* lisp/ob-plantuml.el (org-babel-execute:plantuml):
-rw-r--r-- | lisp/ob-plantuml.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index cf1d9cc..b1814cf 100644 --- a/lisp/ob-plantuml.el +++ b/lisp/ob-plantuml.el @@ -54,7 +54,8 @@ "Execute a block of plantuml code with org-babel. This function is called by `org-babel-execute-src-block'." (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))) (in-file (org-babel-temp-file "plantuml-")) (cmd (if (not org-plantuml-jar-path) |