Mailspring/packages/nylas-sync/sync-utils.js

12 lines
164 B
JavaScript
Raw Normal View History

function jsonError(error) {
return {
message: error.message,
stack: error.stack ? error.stack.split('\n') : [],
}
}
module.exports = {
jsonError,
}