Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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