From: Russ Cox Date: Sat, 17 Jul 2010 04:38:51 +0000 (-0700) Subject: gc: print error detail about failure to open import X-Git-Tag: weekly.2010-07-29~82 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b693847ea8de7fb87dca00eff357488674ce39ad;p=gostls13.git gc: print error detail about failure to open import R=ken2 CC=golang-dev https://golang.org/cl/1872041 --- diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c index 68aa915a91..1499c0426e 100644 --- a/src/cmd/gc/lex.c +++ b/src/cmd/gc/lex.c @@ -384,7 +384,7 @@ importfile(Val *f, int line) imp = Bopen(namebuf, OREAD); if(imp == nil) { - yyerror("can't open import: %Z", f->u.sval); + yyerror("can't open import: %Z: %r", f->u.sval); errorexit(); } file = strdup(namebuf);