mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
12 lines
164 B
JavaScript
12 lines
164 B
JavaScript
|
|
||
|
function jsonError(error) {
|
||
|
return {
|
||
|
message: error.message,
|
||
|
stack: error.stack ? error.stack.split('\n') : [],
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
jsonError,
|
||
|
}
|