Skip to content

Commit a89652d

Browse files
committed
Improve error message on unknown var or type in interop
1 parent a10f750 commit a89652d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Clojure/Clojure/CljCompiler/Compiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ private static Expr AnalyzeSymbol(Symbol symbol)
19201920
else if ((pinfo = Reflector.GetProperty(t, symbol.Name, true)) != null)
19211921
return new StaticPropertyExpr((string)SourceVar.deref(), (IPersistentMap)Compiler.SourceSpanVar.deref(), tag, t, symbol.Name, pinfo);
19221922
}
1923-
throw new InvalidOperationException(string.Format("Unable to find static field: {0} in {1}", symbol.Name, t));
1923+
throw new InvalidOperationException(string.Format("Unable to find namespace or type named {0} in {1}", symbol.Namespace, symbol.ToString()));
19241924
}
19251925
}
19261926

0 commit comments

Comments
 (0)