Skip to content

Commit

Permalink
Add file and line number to earmuff warning. CLJ-882
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information
Chouser authored and stuarthalloway committed Dec 2, 2011
1 parent 8a0482d commit 3d015f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jvm/clojure/lang/Compiler.java
Expand Up @@ -466,8 +466,8 @@ else if(!(RT.second(form) instanceof Symbol))
if(!isDynamic && sym.name.startsWith("*") && sym.name.endsWith("*") && sym.name.length() > 1)
{
RT.errPrintWriter().format("Warning: %1$s not declared dynamic and thus is not dynamically rebindable, "
+"but its name suggests otherwise. Please either indicate ^:dynamic %1$s or change the name.\n",
sym);
+"but its name suggests otherwise. Please either indicate ^:dynamic %1$s or change the name. (%2$s:%3$d)\n",
sym, SOURCE_PATH.get(), LINE.get());
}
if(RT.booleanCast(RT.get(mm, arglistsKey)))
{
Expand Down

0 comments on commit 3d015f9

Please sign in to comment.