Skip to content

Commit

Permalink
Output error more simply
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <[email protected]>
  • Loading branch information
tsmaeder committed Mar 26, 2021
1 parent b2b2a01 commit 76bc164
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/plugin-ext/src/common/rpc-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,7 @@ function safeStringify(obj: any, replacer?: JSONStringifyReplacer): string {
try {
return JSON.stringify(obj, replacer);
} catch (err) {
console.warn('error stringifying response: ' + err);
if (err && err.stack) {
console.error(err.stack);
}
console.error('error stringifying response: ', err);
return 'null';
}
}

0 comments on commit 76bc164

Please sign in to comment.