Convert Error to string

This commit is contained in:
Scott E. Graves
2018-12-11 13:18:02 -06:00
parent e603894e2d
commit 187de4b48c

View File

@@ -217,7 +217,7 @@ const standardIPCReply = (event, channel, data, error) => {
event.sender.send(channel, {
data: {
...data,
Error: error,
Error: error instanceof Error ? error.toString() : error,
Success: !error,
}
});