فهرست منبع

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

* lisp/ob-plantuml.el (org-babel-execute:plantuml):
Eric Schulte 14 سال پیش
والد
کامیت
5bdea686ed
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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)