Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error when :host is nil #18

Open
retrogradeorbit opened this issue Feb 28, 2020 · 0 comments
Open

Better error when :host is nil #18

retrogradeorbit opened this issue Feb 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@retrogradeorbit
Copy link
Member

retrogradeorbit commented Feb 28, 2020

when host in a host config is set to nil we get:

Exception in thread "main" clojure.lang.ExceptionInfo: host must not be null. [at line 5, column 1] {:type :sci/error, :row 5, :col 1, :message "host must not be null. [at line 5, column 1]"}
	at sci.impl.utils$rethrow_with_location_of_node.invokeStatic(utils.cljc:79)
	at sci.impl.utils$rethrow_with_location_of_node.invoke(utils.cljc:63)
	at sci.impl.interpreter$eval_try.invokeStatic(interpreter.cljc:232)
	at sci.impl.interpreter$eval_try.invoke(interpreter.cljc:213)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:382)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:368)
	at sci.impl.interpreter$eval_let$fn__1087.invoke(interpreter.cljc:59)
	at clojure.core$map$fn__5851.invoke(core.clj:2753)
	at clojure.lang.LazySeq.sval(LazySeq.java:42)
	at clojure.lang.LazySeq.seq(LazySeq.java:51)
	at clojure.lang.LazySeq.next(LazySeq.java:80)
	at clojure.lang.RT.next(RT.java:709)
	at clojure.core$next__5371.invokeStatic(core.clj:64)
	at clojure.core$last__5413.invokeStatic(core.clj:268)
	at clojure.core$last__5413.invoke(core.clj:267)
	at sci.impl.interpreter$eval_let.invokeStatic(interpreter.cljc:59)
	at sci.impl.interpreter$eval_let.doInvoke(interpreter.cljc:48)
	at clojure.lang.RestFn.applyTo(RestFn.java:142)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at sci.impl.interpreter$eval_call.invokeStatic(interpreter.cljc:342)
	at sci.impl.interpreter$eval_call.invoke(interpreter.cljc:321)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:384)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:368)
	at sci.impl.interpreter$eval_form.invokeStatic(interpreter.cljc:422)
	at sci.impl.interpreter$eval_form.invoke(interpreter.cljc:413)
	at sci.impl.interpreter$eval_string_STAR_.invokeStatic(interpreter.cljc:432)
	at sci.impl.interpreter$eval_string_STAR_.invoke(interpreter.cljc:425)
	at sci.impl.interpreter$eval_string.invokeStatic(interpreter.cljc:442)
	at sci.impl.interpreter$eval_string.invoke(interpreter.cljc:438)
	at sci.core$eval_string.invokeStatic(core.cljc:163)
	at sci.core$eval_string.invoke(core.cljc:131)
	at spire.core$evaluate.invokeStatic(core.clj:50)
	at spire.core$evaluate.invoke(core.clj:49)
	at spire.core$_main$fn__14941.invoke(core.clj:77)
	at spire.core$_main.invokeStatic(core.clj:76)
	at spire.core$_main.doInvoke(core.clj:58)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at spire.core.main(Unknown Source)
Caused by: com.jcraft.jsch.JSchException: host must not be null.
	at com.jcraft.jsch.JSch.getSession(JSch.java:271)
	at spire.ssh$make_session.invokeStatic(ssh.clj:142)
	at spire.ssh$make_session.invoke(ssh.clj:133)
	at spire.transport$connect.invokeStatic(transport.clj:18)
	at spire.transport$connect.invoke(transport.clj:14)
	at spire.transport$open_connection$fn__9255.invoke(transport.clj:44)
	at clojure.core$update.invokeStatic(core.clj:6196)
	at clojure.core$update.invoke(core.clj:6188)
	at clojure.lang.Atom.swap(Atom.java:65)
	at clojure.core$swap_BANG_.invokeStatic(core.clj:2354)
	at clojure.core$swap_BANG_.invoke(core.clj:2345)
	at spire.transport$open_connection.invokeStatic(transport.clj:40)
	at spire.transport$open_connection.invoke(transport.clj:37)
	at clojure.lang.AFn.applyToHelper(AFn.java:154)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:665)
	at clojure.core$apply.invoke(core.clj:660)
	at sci.impl.interpreter$eval_call.invokeStatic(interpreter.cljc:332)
	at sci.impl.interpreter$eval_call.invoke(interpreter.cljc:321)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:384)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:368)
	at sci.impl.interpreter$eval_let$fn__1082.invoke(interpreter.cljc:53)
	at sci.impl.interpreter$eval_let.invokeStatic(interpreter.cljc:51)
	at sci.impl.interpreter$eval_let.doInvoke(interpreter.cljc:48)
	at clojure.lang.RestFn.applyTo(RestFn.java:142)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at sci.impl.interpreter$eval_call.invokeStatic(interpreter.cljc:342)
	at sci.impl.interpreter$eval_call.invoke(interpreter.cljc:321)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:384)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:368)
	at sci.impl.interpreter$eval_do$fn__1253.invoke(interpreter.cljc:314)
	at sci.impl.interpreter$eval_do.invokeStatic(interpreter.cljc:314)
	at sci.impl.interpreter$eval_do.invoke(interpreter.cljc:310)
	at sci.impl.interpreter$eval_call.invokeStatic(interpreter.cljc:337)
	at sci.impl.interpreter$eval_call.invoke(interpreter.cljc:321)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:384)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:368)
	at sci.impl.interpreter$eval_try.invokeStatic(interpreter.cljc:217)
	... 36 more
@retrogradeorbit retrogradeorbit added the enhancement New feature or request label Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant