Skip to content

Commit

Permalink
Fix CLJ-882 non-dynamic earmuff var warning would be better with file…
Browse files Browse the repository at this point in the history
… name and line number

Fixes #12
  • Loading branch information
hugoduncan committed Feb 24, 2012
1 parent 1f55cc0 commit 98fac1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jvm/clojure/lang/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,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 98fac1a

Please sign in to comment.