lang: Print the actual stream error on test failure

This is useful for debugging.
This commit is contained in:
James Shubin
2019-04-27 16:15:54 -04:00
parent 2f7e202f40
commit 88318b73e4

View File

@@ -1337,7 +1337,7 @@ func TestAstFunc2(t *testing.T) {
}
if err != nil {
t.Errorf("test #%d: FAIL", index)
t.Errorf("test #%d: stream errored", index)
t.Errorf("test #%d: stream errored: %+v", index, err)
return
}
}