mirror of
https://github.com/golang/go
synced 2024-11-20 07:24:40 -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:
parent
a47404bc1c
commit
981f4b43ac
@ -80,7 +80,7 @@ func main() {
|
|||||||
|
|
||||||
src, err := io.ReadFile(filename);
|
src, err := io.ReadFile(filename);
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "%s: %v\n", filename, err);
|
fmt.Fprintf(os.Stderr, "%v\n", err);
|
||||||
os.Exit(1);
|
os.Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user