Skip to content

Commit

Permalink
Improve error message on unknown var or type in interop
Browse files Browse the repository at this point in the history
  • Loading branch information
nasser committed Mar 23, 2017
1 parent a10f750 commit a89652d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Clojure/Clojure/CljCompiler/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ private static Expr AnalyzeSymbol(Symbol symbol)
else if ((pinfo = Reflector.GetProperty(t, symbol.Name, true)) != null)
return new StaticPropertyExpr((string)SourceVar.deref(), (IPersistentMap)Compiler.SourceSpanVar.deref(), tag, t, symbol.Name, pinfo);
}
throw new InvalidOperationException(string.Format("Unable to find static field: {0} in {1}", symbol.Name, t));
throw new InvalidOperationException(string.Format("Unable to find namespace or type named {0} in {1}", symbol.Namespace, symbol.ToString()));
}
}

Expand Down

0 comments on commit a89652d

Please sign in to comment.