improve envdecode error handling
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
e89071200f
commit
6a03c4acba
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user