Fork me on GitHub
#portal
<
2023-01-13
>
Ben Lieberman16:01:00

Out of curiosity, is it default for Portal to not print errors thrown by functions called in a tap>?

djblue16:01:29

tap> is a core function, so if its argument fails to evaluate, tap> is never called and Portal never receives the value.

djblue16:01:24

You could use something like https://cljdoc.org/d/djblue/portal/0.35.1/doc/guides/logging/portal-console if you would like a macro that catches exceptions in its argument

Ben Lieberman16:01:24

No worries, I lost no time in simply looking in my REPL 😃 good to know about log thanks!

djblue16:01:49

The https://cljdoc.org/d/djblue/portal/0.35.1/doc/guides/nrepl middleware will also automatically tap eval results / exceptions as well 👌

👀 2
🔥 2
💯 2