diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-02 19:34:41 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-02 19:34:41 +0000 |
commit | 0ba415ab214ea7bc9c0b5a31e809998686d8b511 (patch) | |
tree | fe0344f264049738dca876a6dd2f69e96621ca17 /libgo/go/gob/error.go | |
parent | b2c1d8d78d1a819c3cbadc61dea50b856a4f0607 (diff) | |
download | gcc-0ba415ab214ea7bc9c0b5a31e809998686d8b511.tar.gz |
libgo: Update to weekly.2011-11-01.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181938 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/gob/error.go')
-rw-r--r-- | libgo/go/gob/error.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/gob/error.go b/libgo/go/gob/error.go index bfd38fc16d3..106543d7360 100644 --- a/libgo/go/gob/error.go +++ b/libgo/go/gob/error.go @@ -18,7 +18,7 @@ import ( // A gobError wraps an os.Error and is used to distinguish errors (panics) generated in this package. type gobError struct { - os.Error + err os.Error } // errorf is like error but takes Printf-style arguments to construct an os.Error. @@ -29,14 +29,14 @@ func errorf(format string, args ...interface{}) { // error wraps the argument error and uses it as the argument to panic. func error(err os.Error) { - panic(gobError{Error: err}) + panic(gobError{err}) } // catchError is meant to be used as a deferred function to turn a panic(gobError) into a // plain os.Error. It overwrites the error return of the function that deferred its call. func catchError(err *os.Error) { if e := recover(); e != nil { - *err = e.(gobError).Error // Will re-panic if not one of our errors, such as a runtime error. + *err = e.(gobError).err // Will re-panic if not one of our errors, such as a runtime error. } return } |