Logger only prints internal errors

This commit is contained in:
Manu Mtz-Almeida
2015-06-06 17:24:16 +02:00
parent 70325deb98
commit dde06a07f0
3 changed files with 4 additions and 3 deletions

View File

@ -69,6 +69,7 @@ func TestErrorSlice(t *testing.T) {
assert.Equal(t, errs.ByType(ErrorTypePrivate).Errors(), []string{"first", "second"})
assert.Equal(t, errs.ByType(ErrorTypePublic|ErrorTypePrivate).Errors(), []string{"first", "second", "third"})
assert.Empty(t, errs.ByType(ErrorTypeBind))
assert.Empty(t, errs.ByType(ErrorTypeBind).String())
assert.Equal(t, errs.String(), `Error #01: first
Error #02: second