improve envdecode error handling

This commit is contained in:
Willy Kloucek
2022-01-03 09:47:52 +01:00
parent ea5dd75605
commit 6d0b754a86
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.")