From 5bdea686ed69c7dc14e512f13bff344f1378370a Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 7 Sep 2010 23:23:08 -0600 Subject: [PATCH] ob-plantuml: raises an error when the :file header argument is not set * lisp/ob-plantuml.el (org-babel-execute:plantuml): --- lisp/ob-plantuml.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index cf1d9cc43..b1814cfe6 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)