mirror of
https://github.com/golang/go.git
synced 2025-10-25 05:53:20 +00:00
src/pkg/[n-z]*: gofix -r error -force=error
R=golang-dev, bsiegert, iant CC=golang-dev https://golang.org/cl/5294074
This commit is contained in:
parent
c2049d2dfe
commit
eb6929299b
166 changed files with 1139 additions and 1238 deletions
|
|
@ -25,7 +25,7 @@ func RunExamples(examples []InternalExample) (ok bool) {
|
|||
defer func() {
|
||||
os.Stdout, os.Stderr = stdout, stderr
|
||||
if e := recover(); e != nil {
|
||||
if err, ok := e.(os.Error); ok {
|
||||
if err, ok := e.(error); ok {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue