mirror of
https://github.com/ko-build/ko.git
synced 2025-11-06 09:19:12 +02:00
Actually print errors during resolve (#275)
We were just throwing away the error for `ko resolve`.
This commit is contained in:
@@ -44,7 +44,7 @@ func ImageReferences(ctx context.Context, docs []*yaml.Node, strict bool, builde
|
||||
if err := builder.IsSupportedReference(ref); err == nil {
|
||||
refs[ref] = append(refs[ref], node)
|
||||
} else if strict {
|
||||
return fmt.Errorf("found strict reference but %s is not a valid import path", ref)
|
||||
return fmt.Errorf("found strict reference but %s is not a valid import path: %v", ref, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user