add error message when panic has been raised within `doTestsBlock()`
Mathias Leppich mleppich@muhqu.de
Sun, 30 Mar 2014 21:59:20 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
block_test.go
→
block_test.go
@@ -31,7 +31,7 @@ // catch and report panics
var candidate string defer func() { if err := recover(); err != nil { - t.Errorf("\npanic while processing [%#v]\n", candidate) + t.Errorf("\npanic while processing [%#v]: %s\n", candidate, err) } }()