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

KlaviyoAPI::APIError swallows messages unless they're part of a hash #36

Open
arthurthefourth opened this issue Mar 14, 2025 · 1 comment

Comments

@arthurthefourth
Copy link

KlaviyoAPI::ApiError.new(message: 'Something specific').to_s # Something specific"

KlaviyoAPI::ApiError.new('Something specific').to_s # "Error message: the server returns an error"

Looks like @message needs to be set in #initialize in the non-hash case.

@ben-horgan-klaviyo
Copy link
Contributor

Thanks for raising this, we will work on a fix!

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

2 participants