Skip to content

Commit

Permalink
fix switch
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Aug 8, 2024
1 parent 1cb822c commit cdf4bae
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/sentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,32 @@ namespace sentry {
* origin: DPP
*/
sentry_status status{};
case (s) {
switch 401:
switch (s) {
case 401:
status = STATUS_UNAUTHENTICATED;
break;
switch 403:
case 403:
status = STATUS_PERMISSION_DENIED;
break;
switch 404:
case 404:
status = STATUS_NOT_FOUND;
break;
switch 409:
case 409:
status = STATUS_ALREADY_EXISTS;
break;
switch 413:
case 413:
status = STATUS_FAILED_PRECONDITION;
break;
switch 429:
case 429:
status = STATUS_RESOURCE_EXHAUSTED;
break;
switch 501:
case 501:
status = STATUS_UNIMPLEMENTED;
break;
switch 503:
case 503:
status = STATUS_UNAVAILABLE;
break;
switch 504:
case 504:
status = STATUS_DEADLINE_EXCEEDED;
break;
default:
Expand Down

0 comments on commit cdf4bae

Please sign in to comment.