Skip to content

Commit

Permalink
Fixed error reporter not checking for undefined handled key (#8186)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink authored Oct 1, 2024
2 parents c04b328 + 78f10dd commit af3f906
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tribler/ui/src/services/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export function formatAxiosError(error: Error | AxiosError): ErrorDict | undefin
// We don't need to do anything, but the GUI should not crash on this
return undefined;
}
var handled = error.response.data?.error?.handled
if (error.response.data.error.handled == false) {
if (error.response.data?.error?.handled == false) {
// This is an error that conforms to the internal unhandled error format: ask the user what to do
handleHTTPError(error);
}
Expand Down

0 comments on commit af3f906

Please sign in to comment.