improve error logging

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and Sebastian Malton committed 2022-01-24 11:05:00 -05:00
1 parent b0f4691778
commit fc241d1066
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ export async function broadcastMessage(channel: string, ...args: any[]): Promise
logger.silly(`[IPC]: broadcasting "${channel}" to ${viewType}=${view.id}`, { args });
view.send(channel, ...args);
} catch (error) {
logger.error(`[IPC]: failed to send IPC message "${channel}" to view "${viewType}=${view.id}"`, { error: String(error) });
logger.error(`[IPC]: failed to send IPC message "${channel}" to view "${viewType}=${view.id}"`, { error });
}
// Send message to subFrames of views.