mirror of
https://github.com/golang/go.git
synced 2025-11-10 13:41:05 +00:00
echo back context of call in error if likely to be useful.
For example, if os.Open("/etc/passwd", os.O_RDONLY)
fails with syscall.EPERM, it returns as the os.Error
&PathError{
Op: "open",
Path: "/etc/passwd"
Error: os.EPERM
}
which formats as
open /etc/passwd: permission denied
Not converted:
datafmt
go/...
google/...
regexp
tabwriter
template
R=r
DELTA=1153 (561 added, 156 deleted, 436 changed)
OCL=30738
CL=30781
|
||
|---|---|---|
| .. | ||
| cat.go | ||
| cat_rot13.go | ||
| echo.go | ||
| file.go | ||
| helloworld.go | ||
| helloworld3.go | ||
| print.go | ||
| print_string.go | ||
| run | ||
| server.go | ||
| server1.go | ||
| sieve.go | ||
| sieve1.go | ||
| sort.go | ||
| sortmain.go | ||
| strings.go | ||
| sum.go | ||