Skip to content

Commit

Permalink
fix(sentry): update sentry errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholuj committed Nov 18, 2020
1 parent 669e178 commit 5a53ddd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,9 @@ export class Client extends EventEmitter {
upload.on('error', e => {
if (this.forwardErrors) {
Sentry.withScope(scope => {
scope.setExtras(e.details);
scope.setExtras({ uploadOptions: options, storeOptions });
scope.setExtras({ uploadOptions: options, storeOptions, details: e.details });
e.message = `FS-${e.message}`;

Sentry.captureException(e);
});
}
Expand Down

0 comments on commit 5a53ddd

Please sign in to comment.