Skip to content

Commit

Permalink
fix: rest error message
Browse files Browse the repository at this point in the history
  • Loading branch information
MARCROCK22 committed Sep 7, 2024
1 parent ead8386 commit bcadf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class ApiHandler {
}
}
if (response.status) {
return new Error(errMessage ?? response.statusText);
return new Error(errMessage || response.statusText);
}
return new Error('Unknown error');
}
Expand Down

0 comments on commit bcadf60

Please sign in to comment.