File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 223223 (str " Invalid :lang specified " lang " , only :clj or :js allowed" ))))))
224224 (cb (wrap-error
225225 (ana/error env
226- (ana/error-message :undeclared-ns
226+ (ana/error-message (if (:macros-ns opts)
227+ :undeclared-macros-ns
228+ :undeclared-ns )
227229 {:ns-sym name :js-provide (cljs.core/name name)})))))))
228230 (catch :default cause
229231 (cb (wrap-error
Original file line number Diff line number Diff line change 228228 " , " (ns->relpath ns-sym :cljc )
229229 " , or Closure namespace \" " js-provide " \" " ))
230230
231+ (defmethod error-message :undeclared-macros-ns
232+ [warning-type {:keys [ns-sym js-provide] :as info}]
233+ (str " No such macros namespace: " ns-sym
234+ " , could not locate " (ns->relpath ns-sym :clj )
235+ " or " (ns->relpath ns-sym :cljc )))
236+
231237(defmethod error-message :dynamic
232238 [warning-type info]
233239 (str (:name info) " not declared ^:dynamic" ))
You can’t perform that action at this time.
0 commit comments