add error message when panic has been raised within doTestsBlock()

This commit is contained in:
Mathias Leppich 2014-03-30 21:59:20 +02:00
parent 0c62e28e90
commit a4274bba51

View File

@ -31,7 +31,7 @@ func doTestsBlock(t *testing.T, tests []string, extensions int) {
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)
}
}()