File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2183
2183
(defmethod parse 'ns
2184
2184
[_ env [_ name & args :as form] _ opts]
2185
2185
(when-not *allow-ns*
2186
- (throw (error env " Namespace declarations must be at the top-level." )))
2186
+ (throw (error env " Namespace declarations must appear at the top-level." )))
2187
2187
(when-not (symbol? name)
2188
2188
(throw (error env " Namespaces must be named by a symbol." )))
2189
2189
(let [name (cond-> name (:macros-ns opts) macro-ns-name)]
2311
2311
(throw (error env (str " Arguments to " (name (first quoted-specs))
2312
2312
" must be quoted. Offending spec: " not-quoted))))
2313
2313
(when-not *allow-ns*
2314
- (throw (error env " Namespace declarations must be at the top-level." )))
2314
+ (throw (error env (str " Calls to `" (name (first quoted-specs))
2315
+ " ` must appear at the top-level." ))))
2315
2316
(let [specs (canonicalize-specs quoted-specs)
2316
2317
name (-> env :ns :name )
2317
2318
args (desugar-ns-specs
You can’t perform that action at this time.
0 commit comments