Skip to content

Commit 2252ba1

Browse files
committed
add more information
1 parent ec28d0e commit 2252ba1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/module_graph.cljc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@
151151
(try
152152
(-> (mapcat #(deps-for % graph deps-key) requires)
153153
(concat requires) distinct vec)
154-
(catch Throwable _
155-
(throw (ex-info (str "Failed to compute deps for " x) {}))))))
154+
(catch Throwable t
155+
(throw
156+
(ex-info (str "Failed to compute deps for " x)
157+
{:lib x :requires requires} t))))))
156158

157159
(defn deps-for-entry
158160
"Return all dependencies for an entry using a compiler inputs index."

0 commit comments

Comments
 (0)