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 223
223
(str " Invalid :lang specified " lang " , only :clj or :js allowed" ))))))
224
224
(cb (wrap-error
225
225
(ana/error env
226
- (ana/error-message :undeclared-ns
226
+ (ana/error-message (if (:macros-ns opts)
227
+ :undeclared-macros-ns
228
+ :undeclared-ns )
227
229
{:ns-sym name :js-provide (cljs.core/name name)})))))))
228
230
(catch :default cause
229
231
(cb (wrap-error
Original file line number Diff line number Diff line change 228
228
" , " (ns->relpath ns-sym :cljc )
229
229
" , or Closure namespace \" " js-provide " \" " ))
230
230
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
+
231
237
(defmethod error-message :dynamic
232
238
[warning-type info]
233
239
(str (:name info) " not declared ^:dynamic" ))
You can’t perform that action at this time.
0 commit comments