mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
type error: avoid message Error: <nil>
(#1918)
This commit is contained in:
parent
173b453d84
commit
c6ffb23fdf
@ -259,7 +259,7 @@ func checkTypes(config map[string]interface{}, options interface{}) map[string]i
|
||||
typeError = fmt.Errorf("config value for '%s' is of unexpected type %s, expected %s: %w",
|
||||
paramName, paramValueType.Kind(), optionsField.Type.Kind(), typeError)
|
||||
log.SetErrorCategory(log.ErrorConfiguration)
|
||||
log.Entry().WithError(typeError).Fatal()
|
||||
log.Entry().WithError(typeError).Fatal("type error in configuration")
|
||||
}
|
||||
}
|
||||
return config
|
||||
|
Loading…
Reference in New Issue
Block a user