Skip to content

Commit

Permalink
set the breadcrumb as the error.dev message
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Oct 25, 2024
1 parent 23a716f commit 497f44b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/api/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ describe('rejectNetworkError', () => {
expect(mocks.addBreadcrumb).toHaveBeenCalledWith({
category: 'network.error',
level: 'error',
message: 'useCoolHook - 404 not found',
data: Error('not found'),
})
})
Expand Down
1 change: 1 addition & 0 deletions src/shared/api/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function rejectNetworkError(error: NetworkErrorObject) {
scope.addBreadcrumb({
category: 'network.error',
level: 'error',
message: error.dev,
data: error.error,
})
scope.setFingerprint([error.dev])
Expand Down

0 comments on commit 497f44b

Please sign in to comment.