mirror of
https://github.com/taigrr/wails.git
synced 2026-04-13 18:38:11 -07:00
Better error reporting when json error happens
This commit is contained in:
@@ -108,7 +108,8 @@ export function Notify(eventName, data) {
|
||||
try {
|
||||
parsedData = JSON.parse(data);
|
||||
} catch (e) {
|
||||
Error('Invalid JSON data sent to notify. Event name = ' + eventName);
|
||||
e.message =
|
||||
Error('Invalid JSON data sent to notify [Event name = ' + eventName + '] ' + e.toString());
|
||||
}
|
||||
}
|
||||
// Do the callback
|
||||
|
||||
Reference in New Issue
Block a user