Skip to content

Commit

Permalink
refactor(refOrFieldError): Update error text
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Volkov authored and Yaroslav Volkov committed Dec 19, 2023
1 parent f3bf575 commit 26e8fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ func refOrFieldError(image, field string, index int) *apis.FieldError {
}
if _, ok := ref.(name.Digest); !ok {
return apis.ErrInvalidValue(
fmt.Sprintf("%s must be an image digest", image),
fmt.Sprintf("%s must be an image digest or image does not exist", image),
"image",
).ViaFieldIndex(field, index)
}
Expand Down

0 comments on commit 26e8fa4

Please sign in to comment.