Quellcode durchsuchen

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

* lisp/ob-plantuml.el (org-babel-execute:plantuml):
Eric Schulte vor 14 Jahren
Ursprung
Commit
5bdea686ed
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      lisp/ob-plantuml.el

+ 2 - 1
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)