Skip to content

Commit f7d08ba

Browse files
anmonteirodnolen
authored andcommitted
CLJS-1957: Process JS modules errors and warnings don't get printed
1 parent 9e5b7ac commit f7d08ba

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,11 @@
339339
(defn report-failure [^Result result]
340340
(let [errors (.errors result)
341341
warnings (.warnings result)]
342-
(doseq [next (seq errors)]
343-
(println "ERROR:" (.toString ^JSError next)))
344-
(doseq [next (seq warnings)]
345-
(println "WARNING:" (.toString ^JSError next)))))
342+
(binding [*out* *err*]
343+
(doseq [next (seq errors)]
344+
(println "ERROR:" (.toString ^JSError next)))
345+
(doseq [next (seq warnings)]
346+
(println "WARNING:" (.toString ^JSError next))))))
346347

347348
;; Protocols for IJavaScript and Compilable
348349
;; ========================================

0 commit comments

Comments
 (0)