Skip to content

Commit

Permalink
Actually print errors during resolve (#275)
Browse files Browse the repository at this point in the history
We were just throwing away the error for `ko resolve`.
  • Loading branch information
jonjohnsonjr committed Dec 21, 2020
1 parent 522c37c commit fd5cd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resolve/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit fd5cd4b

Please sign in to comment.