diff options
author | Bastien Guerry <bzg@altern.org> | 2012-09-28 19:06:17 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-09-28 19:06:17 +0200 |
commit | 4224cb3336cfb945210a35153ff2d06a2b21b3b4 (patch) | |
tree | 575d59920efe8fa1b5dfdc81cddcc9b7a7f6f823 | |
parent | b1f498487afc8177e68c663323344d585780928b (diff) | |
download | org-mode-4224cb3336cfb945210a35153ff2d06a2b21b3b4.tar.gz |
ob-dot.el (org-babel-execute:dot): Throw an error when there is no :file parameter
* ob-dot.el (org-babel-execute:dot): Throw an error when there
is no :file parameter.
-rw-r--r-- | lisp/ob-dot.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-dot.el b/lisp/ob-dot.el index 1d4b7da..99748b0 100644 --- a/lisp/ob-dot.el +++ b/lisp/ob-dot.el @@ -64,7 +64,8 @@ "Execute a block of Dot code with org-babel. This function is called by `org-babel-execute-src-block'." (let* ((result-params (cdr (assoc :result-params params))) - (out-file (cdr (assoc :file params))) + (out-file (cdr (or (assoc :file params) + (error "You need to specify a :file parameter")))) (cmdline (or (cdr (assoc :cmdline params)) (format "-T%s" (file-name-extension out-file)))) (cmd (or (cdr (assoc :cmd params)) "dot")) |