Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

[FEATURE] Add specific error code for spk init command #524

Merged
merged 4 commits into from
Apr 8, 2020
Merged

Conversation

dennisseah
Copy link
Collaborator

closes microsoft/bedrock#1310

e.g.

$ spk init 
error:   
code: 1000
message: init_cmd_failed: Init command was not successfully executed.
  code: 1001
  message: init_cmd_missing_opts: Could not execute this command because file that stores configuration was not provided and interactive mode was not set. Provide file name or enable interactive mode.

@@ -16,6 +16,11 @@
"storageKeVaultName": "Enter key vault name (have the value as empty and hit enter key to skip)"
},
"errors": {
"init_cmd_failed": "Init command was not successfully executed.",
"init_cmd_unable_validate_pat": "Could not validation personal access token because organization, project or access token information were missing. Provide them in config.yaml.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"validate"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accept

@dennisseah dennisseah merged commit a40e151 into master Apr 8, 2020
@dennisseah dennisseah deleted the issue1310 branch April 8, 2020 02:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error codes, error chain for init command
4 participants