ob-clojure: fixed error message when clojure binary is not found
* lisp/ob-clojure.el (org-babel-clojure-babel-clojure-cmd): fixed error message when clojure binary is not found
This commit is contained in:
parent
25d365a373
commit
62dbf404f5
|
@ -91,13 +91,11 @@
|
|||
(defvar swank-clojure-extra-classpaths)
|
||||
(defun org-babel-clojure-babel-clojure-cmd ()
|
||||
"Create the command to start clojure according to current settings."
|
||||
(if (and (not swank-clojure-binary) (not swank-clojure-classpath))
|
||||
(error "%s" (concat "You must specifiy either a `swank-clojure-binary' "
|
||||
"or a `swank-clojure-jar-path'"))
|
||||
(if swank-clojure-binary
|
||||
(or (when swank-clojure-binary
|
||||
(if (listp swank-clojure-binary)
|
||||
swank-clojure-binary
|
||||
(list swank-clojure-binary))
|
||||
(list swank-clojure-binary)))
|
||||
(when swank-clojure-classpath
|
||||
(delq
|
||||
nil
|
||||
(append
|
||||
|
@ -112,7 +110,9 @@
|
|||
(append
|
||||
swank-clojure-classpath
|
||||
swank-clojure-extra-classpaths))
|
||||
"clojure.main"))))))
|
||||
"clojure.main"))))
|
||||
(error "%s" (concat "You must specifiy either a `swank-clojure-binary' "
|
||||
"or a `swank-clojure-classpath'"))))
|
||||
|
||||
(defun org-babel-clojure-table-or-string (results)
|
||||
"Convert RESULTS to an elisp value.
|
||||
|
|
Loading…
Reference in New Issue