Skip to content

Commit be15b57

Browse files
author
dnolen
committed
add super basic error reporting
1 parent 2e95d95 commit be15b57

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/clojure/cljs/build/api.clj

+7-4
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,13 @@
252252
(if (zero? err)
253253
(let [is (.getInputStream proc)]
254254
(into []
255-
(map (fn [{:strs [file]}] file
256-
{:file file :module-type :commonjs}))
257-
(butlast (json/read-str (slurp is)))))
258-
[])))
255+
(map (fn [{:strs [file]}] file
256+
{:file file :module-type :commonjs}))
257+
(butlast (json/read-str (slurp is)))))
258+
(let [es (.getErrorStream proc)]
259+
(binding [*out* *err*]
260+
(println (slurp es)))
261+
[]))))
259262

260263
(comment
261264
(add-package-jsons

0 commit comments

Comments
 (0)