Update Errorf formatting

This commit is contained in:
sophia 2021-08-17 10:07:45 -05:00 committed by Paul Hinze
parent ff8d5ef729
commit d7f01d32fd
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -65,9 +65,8 @@ func (t *TargetIndex) Includes(uuid string) (exists bool, err error) {
func (t *TargetIndex) Set(entry core.Target) (updatedEntry core.Target, err error) {
updatedEntry, ok := entry.(*Target)
if !ok {
return nil, fmt.Errorf("cannot save target, invalid type",
"target", entry,
"type", hclog.Fmt("%T", entry),
return nil, fmt.Errorf("cannot save target, invalid type. Target %v, type %v",
entry, hclog.Fmt("%T", entry),
)
}