mirror of
https://github.com/golang/go
synced 2024-11-20 04:54:44 -07:00
fix error messages
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=31449 CL=31451
This commit is contained in:
parent
9de5df89c3
commit
a47404bc1c
@ -57,12 +57,12 @@ func TestParse3(t *testing.T) {
|
||||
src, err := os.Open(filename, os.O_RDONLY, 0);
|
||||
defer src.Close();
|
||||
if err != nil {
|
||||
t.Fatalf("os.Open(%s): %v\n", filename, err);
|
||||
t.Fatal(err);
|
||||
}
|
||||
|
||||
prog, err := Parse(src, 0);
|
||||
if err != nil {
|
||||
t.Errorf("Parse(%q): %v", src, err);
|
||||
t.Errorf("Parse(%s): %v", filename, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user