Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created February 12, 2015 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/c4669e6ba617e2eedadd to your computer and use it in GitHub Desktop.
Save mfikes/c4669e6ba617e2eedadd to your computer and use it in GitHub Desktop.
Custom stack trace printing in Ambly
Default impl:
ClojureScript:cljs.user> (hello-ambly.core/test-exception-one)
Error: 1 is not ISeqable
cljs.core/seq (out/cljs/core.cljs:727:13)
cljs.core/first (out/cljs/core.cljs:736:7)
cljs.core/ffirst (out/cljs/core.cljs:1155:3)
hello-ambly.core/test-exception-two (out/hello_ambly/core.cljs:16:3)
hello-ambly.core/test-exception-one (out/hello_ambly/core.cljs:19:3)
With custom impl of cljs.repl/IPrintStackTrace printing original files
ClojureScript:cljs.user> (hello-ambly.core/test-exception-one)
Error: 1 is not ISeqable
cljs.core/seq (jar:file:/Users/mfikes/.m2/repository/org/clojure/clojurescript/0.0-2842/clojurescript-0.0-2842.jar!/cljs/core.cljs:727:13)
cljs.core/first (jar:file:/Users/mfikes/.m2/repository/org/clojure/clojurescript/0.0-2842/clojurescript-0.0-2842.jar!/cljs/core.cljs:736:7)
cljs.core/ffirst (jar:file:/Users/mfikes/.m2/repository/org/clojure/clojurescript/0.0-2842/clojurescript-0.0-2842.jar!/cljs/core.cljs:1155:3)
hello-ambly.core/test-exception-two (file:/Users/mfikes/Documents/Projects/hello-ambly/src/hello_ambly/core.cljs:16:3)
hello-ambly.core/test-exception-one (file:/Users/mfikes/Documents/Projects/hello-ambly/src/hello_ambly/core.cljs:19:3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment