CI: check generated code in test workflow (#3261)

This commit is contained in:
mmetc 2024-09-25 09:02:53 +02:00 committed by GitHub
parent 3945a991bd
commit 897613e837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View file

@ -202,7 +202,7 @@ func (m *Machine) assignValues(columns []string, values []any) error {
return fmt.Errorf("unexpected type %T for field hubstate", values[i])
} else if value != nil && len(*value) > 0 {
if err := json.Unmarshal(*value, &m.Hubstate); err != nil {
return fmt.Errorf("parsing field hubstate: %w", err)
return fmt.Errorf("unmarshal field hubstate: %w", err)
}
}
case machine.FieldDatasources:
@ -210,7 +210,7 @@ func (m *Machine) assignValues(columns []string, values []any) error {
return fmt.Errorf("unexpected type %T for field datasources", values[i])
} else if value != nil && len(*value) > 0 {
if err := json.Unmarshal(*value, &m.Datasources); err != nil {
return fmt.Errorf("parsing field datasources: %w", err)
return fmt.Errorf("unmarshal field datasources: %w", err)
}
}
default: