]> Cypherpunks repositories - gostls13.git/commit
runtime: make execution error panic values implement the Error interface
authorEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 28 Mar 2016 00:29:53 +0000 (17:29 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Apr 2016 01:16:30 +0000 (01:16 +0000)
commite4f1d9cf2e948eb0f0bb91d7c253ab61dfff3a59
tree3d4cf398d6235b777cb0de186d03369d8d598f2a
parent824d8c10fe5e1026c15cbece41ee372b1fd333f3
runtime: make execution error panic values implement the Error interface

Make execution panics implement Error as
mandated by https://golang.org/ref/spec#Run_time_panics,
instead of panics with strings.

Fixes #14965

Change-Id: I7827f898b9b9c08af541db922cc24fa0800ff18a
Reviewed-on: https://go-review.googlesource.com/21214
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/chan.go
src/runtime/crash_test.go
src/runtime/error.go
src/runtime/hashmap.go
src/runtime/malloc.go
src/runtime/proc.go
src/runtime/select.go