Fork me on GitHub
#nbb
<
2022-12-31
>
alpox18:12:38

Is there a way to print a nice error message/stacktrace out of errors occurring? The error output I’m seeing looks fine when I execute the script with nbb but not if I’m using the example script from https://github.com/babashka/nbb/blob/main/doc/publish/README.md (`index.mjs`). In addition I could not find a way to print a good looking error message from within clojurescript either. I’m getting sci errors that look alike:

#error {:message "exec: fatal: Failed to resolve 'true' as a valid ref.\n", :data {:type :sci/error, :line 74, :column 9, :message "exec: fatal: Failed to resolve 'true' as a valid ref.\n" ....
Is there a way to format those? I found sci/format-stacktrace but it doesn’t seem to be available within nbb

borkdude18:12:54

I'm currently down with the flu. Can you post a Github Discussion Q/A? Then I'll reply later.

alpox18:12:46

That was a fast answer for that you have the flu! I’ll go about it. Get better soon and rest well!

Chris McCormick00:01:13

Hope you feel better soon!

☝️ 6