gc: print error detail about failure to open import

R=ken2
CC=golang-dev
https://golang.org/cl/1872041
This commit is contained in:
Russ Cox 2010-07-16 21:38:51 -07:00
parent 08e65f79c1
commit b693847ea8
1 changed files with 1 additions and 1 deletions

View File

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