mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
8b1f012a3c
- Remove cumbersome NylasError - Add helper to serialize error when saving to account
11 lines
164 B
JavaScript
11 lines
164 B
JavaScript
|
|
function jsonError(error) {
|
|
return {
|
|
message: error.message,
|
|
stack: error.stack ? error.stack.split('\n') : [],
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
jsonError,
|
|
}
|