• 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
..
Makefile Loading commit data...
atof.go Loading commit data...
atof_test.go Loading commit data...
atoi.go Loading commit data...
atoi_test.go Loading commit data...
decimal.go Loading commit data...
decimal_test.go Loading commit data...
fp_test.go Loading commit data...
ftoa.go Loading commit data...
ftoa_test.go Loading commit data...
itoa.go Loading commit data...
itoa_test.go Loading commit data...
quote.go Loading commit data...
quote_test.go Loading commit data...
testfp.txt Loading commit data...