mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
add error message when panic has been raised within doTestsBlock()
This commit is contained in:
parent
0c62e28e90
commit
a4274bba51
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user