Compare commits

...

1 Commits

Author SHA1 Message Date
Lea Anthony
5d442947f3 Better error reporting when json error happens 2020-05-22 07:09:19 +10:00

View File

@@ -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