From 454ea65f580b55b45fe4cee2b1a215d6c5340aa5 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 2 Jun 2024 15:20:04 +0200 Subject: [PATCH] VW ID: better engine type errors --- vehicle/vw/id/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle/vw/id/types.go b/vehicle/vw/id/types.go index 00dea23f6..46faaaa1b 100644 --- a/vehicle/vw/id/types.go +++ b/vehicle/vw/id/types.go @@ -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