Skip to content

Commit 7851344

Browse files
authored
clean up unnecessary sentry stack (#7758)
1 parent 225b266 commit 7851344

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • packages/insomnia/src/utils/prettify

packages/insomnia/src/utils/prettify/json.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { SentryError } from '@sentry/utils';
2-
31
const STATE_IN_NUN_VAR = 'nunvar';
42
const STATE_IN_NUN_TAG = 'nuntag';
53
const STATE_IN_NUN_COM = 'nuncom';
@@ -38,7 +36,7 @@ function ensureStringify(val?: string | Object): string {
3836
try {
3937
defaultVal = JSON.stringify(val);
4038
} catch (error) {
41-
SentryError.captureStackTrace(error);
39+
// If we can't stringify, just return the default
4240
}
4341

4442
return defaultVal;

0 commit comments

Comments
 (0)