Convert Error to string
This commit is contained in:
@@ -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,
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user