]> Cypherpunks repositories - gostls13.git/commitdiff
gc: fix non-canonical import error message
authorRuss Cox <rsc@golang.org>
Mon, 27 Sep 2010 16:59:26 +0000 (12:59 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 27 Sep 2010 16:59:26 +0000 (12:59 -0400)
Fixes #1142.

R=ken2
CC=golang-dev
https://golang.org/cl/2218046

src/cmd/gc/lex.c

index 7ddcdd21d229f57d5ba0c97996ac82833cb348d3..b46aa2ae0850e46356204e7c1aba507e210a07ed 100644 (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;
        }