Skip to content

Commit

Permalink
Clarify error message to indicate the file must start with credential…
Browse files Browse the repository at this point in the history
…s key
  • Loading branch information
danjahner committed Jul 17, 2017
1 parent c941482 commit cbd893f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
})
Expand Down
2 changes: 1 addition & 1 deletion errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

0 comments on commit cbd893f

Please sign in to comment.