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: add missing token error #60

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

mateuszjenek
Copy link
Contributor

No description provided.

@@ -56,7 +58,7 @@ func (c *Client) Client() *client.Client {

func NewClient(config *Config) (*Client, error) {
if config.Token == "" {
return nil, fmt.Errorf("empty token")
return nil, ErrMissingToken
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test for this? Just to ensure we don't regress as this is public api now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@mateuszjenek mateuszjenek force-pushed the add_empty_token_error branch from 63b40f4 to 6f14682 Compare April 9, 2024 13:02
@mateuszjenek mateuszjenek force-pushed the add_empty_token_error branch from 6f14682 to e80e38d Compare April 9, 2024 13:04
@mateuszjenek mateuszjenek merged commit cfb171f into main Apr 9, 2024
2 checks passed
@mateuszjenek mateuszjenek deleted the add_empty_token_error branch April 9, 2024 13:05
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.

2 participants