mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
cli: Ensure all no argument console messages are the same. (#26331)
Use a constant to ensure consistency across the CLI when displaying a console message indicating the command was passed arguments when it takes none.
This commit is contained in:
@@ -326,7 +326,7 @@ func TestDebug_Failures(t *testing.T) {
|
||||
name: "fails incorrect args",
|
||||
args: []string{"some", "bad", "args"},
|
||||
expectedCode: 1,
|
||||
expectedError: "This command takes no arguments",
|
||||
expectedError: uiMessageNoArguments,
|
||||
},
|
||||
{
|
||||
name: "Fails illegal node ids",
|
||||
|
||||
Reference in New Issue
Block a user