1
0
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:
jonjohnsonjr
2020-12-21 14:51:05 -08:00
committed by GitHub
parent 522c37c4e0
commit fd5cd4bfbc

View File

@@ -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)
}
}
}