1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00
The Go programming language
Go to file
Russ Cox a0bcaf4c00 Change os.Error convention:
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
2009-06-25 20:24:55 -07:00
doc Change os.Error convention: 2009-06-25 20:24:55 -07:00
include fix gotest by fixing nm -s to print in file order by storing a sequence number 2009-04-15 21:57:55 -07:00
lib tweak the newlines so the headers stand out better. 2009-06-22 14:18:23 -07:00
misc/xcode xcode config files, self-describing 2009-05-20 16:09:34 -07:00
pkg clear out pkg tree in clean.bash. 2009-05-20 11:12:05 -07:00
src Change os.Error convention: 2009-06-25 20:24:55 -07:00
test add ./ to imports where necessary 2009-06-25 20:13:56 -07:00
usr - install gofmt in src/cmd/gofmt 2009-06-16 12:03:32 -07:00