• Russ Cox's avatar
    Change os.Error convention: · a0bcaf4c
    Russ Cox authored
    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
    a0bcaf4c
Name
Last commit
Last update
..
cat.go Loading commit data...
cat_rot13.go Loading commit data...
echo.go Loading commit data...
file.go Loading commit data...
helloworld.go Loading commit data...
helloworld3.go Loading commit data...
print.go Loading commit data...
print_string.go Loading commit data...
run Loading commit data...
server.go Loading commit data...
server1.go Loading commit data...
sieve.go Loading commit data...
sieve1.go Loading commit data...
sort.go Loading commit data...
sortmain.go Loading commit data...
strings.go Loading commit data...
sum.go Loading commit data...