From cbd893f18cf5b13e490d741a86f818536263eda4 Mon Sep 17 00:00:00 2001 From: Dan Jahner Date: Mon, 17 Jul 2017 16:42:44 -0700 Subject: [PATCH] Clarify error message to indicate the file must start with credentials key --- commands/import_test.go | 2 +- errors/errors.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/import_test.go b/commands/import_test.go index b1c5bab6..c8a15013 100644 --- a/commands/import_test.go +++ b/commands/import_test.go @@ -164,7 +164,7 @@ Failed to set: 2 It("prints correct error message", func() { session := runCommand("import", "-f", "../test/test_import_incorrect_format.yml") - noCredentialTagError := "The referenced import file does not contain a 'credentials' key. The import file must contain a list of credentials under the key 'credentials'. Please update and retry your request." + noCredentialTagError := "The referenced import file does not begin with the key 'credentials'. The import file must contain a list of credentials under the key 'credentials'. Please update and retry your request." Eventually(session.Err).Should(Say(noCredentialTagError)) }) }) diff --git a/errors/errors.go b/errors/errors.go index 7adb2587..00782826 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -90,5 +90,5 @@ func NewInvalidImportYamlError() error { } func NewNoCredentialsTag() error { - return errors.New("The referenced import file does not contain a 'credentials' key. The import file must contain a list of credentials under the key 'credentials'. Please update and retry your request.") + return errors.New("The referenced import file does not begin with the key 'credentials'. The import file must contain a list of credentials under the key 'credentials'. Please update and retry your request.") }