Add a more useful default error reporter for cljs instrumentation #678
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fipp, the pretty printer, is not designed with the browser console in
mind and the output when developing in cljs is not usable.
(Every print call invokes console.log which will result in a new output line per invocation,
instead of all on one line like in a terminal).
This commit allows navigating directly to the callsite where the error occurred via a JavaScript stacktrace.
This should address #675 and #666
I believe we would have to create another pretty printer namespace for ClojureScript that mirrors the
malli.dev.pretty
namespace but with the browser console in mind to get useful output.