Skip to content

Commit 06d81bc

Browse files
anmonteiroswannodette
authored andcommitted
CLJS-2306: Provide better warning message when namespace can't be found
1 parent 6e0715c commit 06d81bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
;; confirm that the library at least exists
822822
#?(:clj (nil? (util/ns->source ns-sym)))
823823
(not (js-module-exists? ns-sym)))
824-
(warning :undeclared-ns env {:ns-sym ns-sym})))
824+
(warning :undeclared-ns env {:ns-sym ns-sym :js-provide ns-sym})))
825825

826826
(defn core-name?
827827
"Is sym visible from core in the current compilation namespace?"

0 commit comments

Comments
 (0)