From: Shenghou Ma Date: Wed, 6 Feb 2013 10:32:54 +0000 (+0800) Subject: doc/articles/error_handling: no more os.Error X-Git-Tag: go1.1rc2~1127 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fe51d09bbe83f1ff42c8e428f4c2a7ce1817bc4e;p=gostls13.git doc/articles/error_handling: no more os.Error R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7304053 --- diff --git a/doc/progs/error4.go b/doc/progs/error4.go index bf234c98f8..d40fc6eb23 100644 --- a/doc/progs/error4.go +++ b/doc/progs/error4.go @@ -24,7 +24,7 @@ type appError struct { type appHandler func(http.ResponseWriter, *http.Request) *appError func (fn appHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - if e := fn(w, r); e != nil { // e is *appError, not os.Error. + if e := fn(w, r); e != nil { // e is *appError, not error. c := appengine.NewContext(r) c.Errorf("%v", e.Error) http.Error(w, e.Message, e.Code)