1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:10:24 -07:00

gc: fix non-canonical import error message

Fixes #1142.

R=ken2
CC=golang-dev
https://golang.org/cl/2218046
This commit is contained in:
Russ Cox 2010-09-27 12:59:26 -04:00
parent 929fdd860b
commit 7e92e1cbfa

View File

@ -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;
}