Commit 7e92e1cb authored by Russ Cox's avatar Russ Cox

gc: fix non-canonical import error message

Fixes #1142.

R=ken2
CC=golang-dev
https://golang.org/cl/2218046
parent 929fdd86
......@@ -378,7 +378,7 @@ findpkg(Strlit *name)
q[name->len] = '\0';
cleanname(q);
if(strlen(q) != name->len || memcmp(q, name->s, name->len) != 0) {
yyerror("non-canonical import name %Z (%s)", name->s, q);
yyerror("non-canonical import path %Z (should be %s)", name, q);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment