nbb

alpox 2022-12-31T18:15:38.696789Z

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

borkdude 2022-12-31T18:16:54.864879Z

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

alpox 2022-12-31T18:17:46.532349Z

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

Chris McCormick 2023-01-01T00:54:13.437289Z

Hope you feel better soon!

☝️ 3