From fd5cd4bfbc2276a10187b80d8b287b1de1feb7a8 Mon Sep 17 00:00:00 2001 From: jonjohnsonjr Date: Mon, 21 Dec 2020 14:51:05 -0800 Subject: [PATCH] Actually print errors during resolve (#275) We were just throwing away the error for `ko resolve`. --- pkg/resolve/resolve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resolve/resolve.go b/pkg/resolve/resolve.go index 5a441bfa59..e4c66bb7e9 100644 --- a/pkg/resolve/resolve.go +++ b/pkg/resolve/resolve.go @@ -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) } } }