Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

jerome-quere
Copy link
Contributor

No description provided.

@@ -265,7 +265,7 @@ func TestLoadProfileAndActiveProfile(t *testing.T) {
},
{
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
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
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
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