Skip to content

Commit

Permalink
override stack with the error message in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Oct 24, 2022
1 parent 996b00b commit a7c6f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export function resolveErrorProd(
' builds to avoid leaking sensitive details. A digest property is included on this error instance which' +
' may provide additional details about the nature of the error.',
);
error.stack = '';
error.stack = 'Error: ' + error.message;
(error: any).digest = digest;
const errorWithDigest: ErrorWithDigest = (error: any);
const chunks = response._chunks;
Expand Down

0 comments on commit a7c6f79

Please sign in to comment.