improve envdecode error handling

This commit is contained in:
Willy Kloucek
2022-01-07 16:08:14 +00:00
committed by Jörn Friedrich Dreyer
parent e89071200f
commit 6a03c4acba
14 changed files with 79 additions and 27 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ func TestDecodeErrors(t *testing.T) {
var tcrd testConfigRequiredDefault
defer func() {
recover()
_ = recover()
}()
_ = Decode(&tcrd)
t.Fatal("This should not have been reached. A panic should have occured.")