Skip to content

Commit

Permalink
Improve strict-mode error message
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Aug 15, 2019
1 parent 3315663 commit 9776d34
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 @@ -53,7 +53,7 @@ func ImageReferences(input []byte, strict bool, builder build.Interface, publish
if builder.IsSupportedReference(tref) {
refs[tref] = struct{}{}
} else if strict && strings.HasPrefix(ref, "ko://") {
return "", fmt.Errorf("Strict reference %q is not supported", ref)
return "", fmt.Errorf("Found strict reference %q but %s is not a valid import path", ref, strings.TrimPrefix(ref, "ko://"))
}
return ref, nil
}); err != nil {
Expand Down

0 comments on commit 9776d34

Please sign in to comment.