VW ID: better engine type errors

This commit is contained in:
andig 2024-06-02 15:20:04 +02:00
parent 4f888064d7
commit 454ea65f58

View file

@ -310,7 +310,7 @@ func (f *FuelStatus) EngineRangeStatus(typ string) (EngineRangeStatus, error) {
return f.RangeStatus.Value.SecondaryEngine, nil
}
return EngineRangeStatus{}, fmt.Errorf("unknown engine type: %s", typ)
return EngineRangeStatus{}, fmt.Errorf("unknown engine type: %s, got [%s, %s]", typ, f.RangeStatus.Value.PrimaryEngine.Type, f.RangeStatus.Value.SecondaryEngine.Type)
}
// EngineRangeStatus is the engine range status