File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 910
910
_ (when context?
911
911
(when-not safely-static
912
912
(when (and static? (not (-> info :public :static )))
913
- (let [coach (or (some-> (System/getProperty " compojure.api.meta.static-context-coach" )
914
- edn/read-string)
915
- {:default :print })
913
+ (let [coach (some-> (System/getProperty " compojure.api.meta.static-context-coach" )
914
+ edn/read-string)
915
+ _ (assert (map? coach)
916
+ (str " -Dcompojure.api.meta.static-context-coach should be a map, given: "
917
+ (pr-str coach)))
916
918
nsym (ns-name *ns*)
917
919
mode (or (get coach nsym)
918
920
(get coach :default )
926
928
" use (context ... :static true ...)."
927
929
" \n\n "
928
930
" To suppress this message for this namespace use -Dcompojure.api.meta.static-context-coach="
929
- " {" nsym :off " }" )]
931
+ " {" nsym :off " }"
932
+ (when coach
933
+ (str " \n\n Current coach config: " (pr-str coach))))]
930
934
(case coach
931
935
:off nil
932
936
:print (println msg)
You can’t perform that action at this time.
0 commit comments