Skip to content

feat(config): add a typed error on config file not found#264

Merged
jerome-quere merged 3 commits intoscaleway:masterfrom
jerome-quere:configfilenotfound
Dec 3, 2019
Merged

feat(config): add a typed error on config file not found#264
jerome-quere merged 3 commits intoscaleway:masterfrom
jerome-quere:configfilenotfound

Conversation

@jerome-quere
Copy link
Copy Markdown
Contributor

No description provided.

{
name: "No config",
expectedError: "scaleway-sdk-go: cannot read config file: open {HOME}/.config/scw/config.yaml: no such file or directory",
expectedError: "scaleway-sdk-go: config file {HOME}/.config/scw/config.yaml could not be found",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: I would expect a message such as:

"scaleway-sdk-go: cannot read config file {HOME}/.config/scw/config.yaml: no such file or directory"

no such file or directory being a very common error message for shell users.

Copy link
Copy Markdown
Contributor

@kindermoumoute kindermoumoute left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@QuentinBrosse QuentinBrosse left a comment

Choose a reason for hiding this comment

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

LGTM

@jerome-quere jerome-quere merged commit 5bdfb4f into scaleway:master Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants