Hi, I am using the following code in order to customize the error message shown to the user when a http request fails.
req.on('error', () => {
const error = new Error('Custom error message.');
error.stack = null;
unhandled.logError(error, {
title: 'Custom error title'
});
});
However, the error popup also shows a stack trace at the end of my message, that I would like to hide, is there any way I can achieve this?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too