From 40697ab6c15a219a2ff896ccaddbb531c7c45ee6 Mon Sep 17 00:00:00 2001 From: Brian Lalor Date: Thu, 13 Dec 2018 13:22:17 -0500 Subject: [PATCH] Fix output of 'nomad deployment fail' with no arg --- command/deployment_fail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/deployment_fail.go b/command/deployment_fail.go index 25ad154b7..2b795c631 100644 --- a/command/deployment_fail.go +++ b/command/deployment_fail.go @@ -79,10 +79,10 @@ func (c *DeploymentFailCommand) Run(args []string) int { return 1 } - // Check that we got no arguments + // Check that we got one argument args = flags.Args() if l := len(args); l != 1 { - c.Ui.Error("This command takes no arguments") + c.Ui.Error("This command takes one argument: ") c.Ui.Error(commandErrorText(c)) return 1 }