1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -07:00

mention file name only once in error message

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31450
CL=31452
This commit is contained in:
Robert Griesemer 2009-07-10 10:01:08 -07:00
parent a47404bc1c
commit 981f4b43ac

View File

@ -80,7 +80,7 @@ func main() {
src, err := io.ReadFile(filename);
if err != nil {
fmt.Fprintf(os.Stderr, "%s: %v\n", filename, err);
fmt.Fprintf(os.Stderr, "%v\n", err);
os.Exit(1);
}