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

Fixes a bug in handling "Spam detected" messages #430

Merged
merged 2 commits into from
Nov 6, 2018

Conversation

halfbyte
Copy link
Contributor

@halfbyte halfbyte commented Nov 6, 2018

This fixes error.rb so that it handles error responses created by Gitlab.com's spam protection
correctly. The error message is nested in a slightly off way (I believe
this is a bug), causing the error message formatting code to blow up as
it tries to join a string.

I admit doing [val].flatten feels a bit hackish, but the alternative (nested ternaries) is also not pretty. :)

This handles error responses created by Gitlab.com's spam protection
correctly. The error message is nested in a slightly off way (I believe
this is a bug), causing the error message formatting code to blow up as
it tries to join a string.
@NARKOZ NARKOZ merged commit 4430836 into NARKOZ:master Nov 6, 2018
@NARKOZ
Copy link
Owner

NARKOZ commented Nov 6, 2018

Thank you.

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