Log errors when vehicle creation fails
This commit is contained in:
parent
044a184396
commit
99264e4cf9
1 changed files with 1 additions and 0 deletions
|
|
@ -269,6 +269,7 @@ func (cp *ConfigProvider) configureVehicles(conf config) error {
|
|||
|
||||
v, err := vehicle.NewFromConfig(cc.Type, cc.Other)
|
||||
if err != nil {
|
||||
log.ERROR.Printf("creating vehicle %s failed: %v", cc.Name, err)
|
||||
// wrap any created errors to prevent fatals
|
||||
v, _ = wrapper.New(v, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue