From 9b465004feab6f3b0b6e9fcd69529615326ded07 Mon Sep 17 00:00:00 2001 From: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com> Date: Mon, 7 Jun 2021 17:38:51 -0700 Subject: [PATCH] chore: updates error msg Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com> --- cmd/addpool.go | 2 +- cmd/addpool_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/addpool.go b/cmd/addpool.go index 98ef963c1f..53826520c6 100644 --- a/cmd/addpool.go +++ b/cmd/addpool.go @@ -107,7 +107,7 @@ func (apc *addPoolCmd) validate(cmd *cobra.Command) error { if apc.nodePoolPath == "" { _ = cmd.Usage() - return errors.New("--nodepool must be specified") + return errors.New("--node-pool must be specified") } return nil } diff --git a/cmd/addpool_test.go b/cmd/addpool_test.go index 80fbed2dc1..e6e68af233 100644 --- a/cmd/addpool_test.go +++ b/cmd/addpool_test.go @@ -63,7 +63,7 @@ func TestAddPoolCmdValidate(t *testing.T) { location: "centralus", resourceGroupName: "testRG", }, - expectedErr: errors.New("--nodepool must be specified"), + expectedErr: errors.New("--node-pool must be specified"), name: "NoNodePool", }, {