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:
parent
929fdd860b
commit
7e92e1cbfa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user