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

Set err in getB2Client #6

Open
kula opened this issue Feb 4, 2019 · 0 comments
Open

Set err in getB2Client #6

kula opened this issue Feb 4, 2019 · 0 comments

Comments

@kula
Copy link
Owner

kula commented Feb 4, 2019

if c.KeyId == "" {
b.Logger().Error("KeyID not set when trying to create new client")
return nil, err
}
if c.Key == "" {
b.Logger().Error("Key not set when trying to create new client")
return nil, err

At this point, err is still nil, so we won't upstream the errors we're trying to return here.

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

No branches or pull requests

1 participant