mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-10-14 00:59:29 +00:00
Dont join stacks
This commit is contained in:
parent
bf6c2b9319
commit
567d212204
@ -552,7 +552,6 @@ function onError(message, error) {
|
||||
if (config.debug) { console.error(error.stack); }
|
||||
// rethrow new high level error for api users
|
||||
const newError = new Error(message + ': ' + error.message);
|
||||
newError.stack += '\n' + error.stack;
|
||||
newError.innerError = error;
|
||||
throw newError;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user