Skip to content

Commit 1e6155c

Browse files
committed
coach
1 parent 7f9e835 commit 1e6155c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/compojure/api/meta.clj

+6
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,12 @@
918918
(get coach :default)
919919
:print)
920920
msg (str "This looks like it could be a static context: " (pr-str {:form &form :meta (meta &form)})
921+
"\n\n"
922+
"If you intend for the body of this context to be evaluated on every request, please "
923+
"use (context ... :dynamic true ...)."
924+
"\n\n"
925+
"If you intend for the body of this context to be fixed for every request, please "
926+
"use (context ... :static true ...)."
921927
"\n\n"
922928
"To suppress this message for this namespace use -Dcompojure.api.meta.static-context-coach="
923929
"{" nsym :off "}")]

0 commit comments

Comments
 (0)