Skip to content

Commit

Permalink
nochangelog: fix cmd name in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g committed Oct 6, 2023
1 parent 94300fb commit 473a100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/fnerrors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ func InvocationError(what, format string, args ...interface{}) error {
// This error means that Namespace does not meet the minimum version requirements.
func NamespaceTooOld(what string, expected, got int32) error {
if expected == 0 && got == 0 {
return New("`ns` needs to be updated to use %q", what)
return New("`%s` needs to be updated to use %q", name.CmdName, what)
}

return New("`ns` needs to be updated to use %q, (need api version %d, got %d)", what, expected, got)
return New("`%s` needs to be updated to use %q, (need api version %d, got %d)", name.CmdName, what, expected, got)
}

func NamespaceTooRecent(what string, expected, got int32) error {
Expand Down

0 comments on commit 473a100

Please sign in to comment.