Skip to content

Commit

Permalink
Add safeguard in sync errors handling by parsing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Nov 20, 2024
1 parent 6e60ff2 commit c9ba543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/synchronizationerror.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ SynchronizationError::ErrorType SynchronizationError::errorType( int errorCode,
else if ( errorCode == 422 )
{
// Hit the maximun number of contributor per month
return ErrorType::MonthlyContributorsLimitHit;
if ( errorMessage.contains( QStringLiteral( "Maximum number of workspace contributors" ) ) )
{
return ErrorType::MonthlyContributorsLimitHit;
}

return ErrorType::UnknownError;
}
else if ( errorCode >= 500 )
{
Expand Down

1 comment on commit c9ba543

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

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

iOS - version 24.11.695311 just submitted!

Please sign in to comment.