Skip to content

Commit

Permalink
partition load time errors from figwheel runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Aug 8, 2018
1 parent ebfda92 commit d43d6ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/figwheel/main.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@
(try
(figwheel.core/reload-clj-files clj-files)
(catch Throwable t
(log/syntax-exception t)
(figwheel.core/notify-on-exception cenv t {})
(if (-> t ex-data :figwheel.core/internal)
(log/error (.getMessage t) t)
(do
(log/syntax-exception t)
(figwheel.core/notify-on-exception cenv t {})))
;; skip cljs reloading in this case
(throw t))))
(log/debug "Detected changed cljs files: " (pr-str (map str files)))
(build-fn files)
Expand Down

0 comments on commit d43d6ba

Please sign in to comment.