diff --git a/src/socketlib.js b/src/socketlib.js index 570915b..438e389 100644 --- a/src/socketlib.js +++ b/src/socketlib.js @@ -258,6 +258,7 @@ class SocketlibSocket { } catch (e) { console.error(`An exception occured while executing handler '${name}'.`); + this._sendError(id, MESSAGE_TYPES.EXCEPTION); throw e; } this._sendResult(id, result);