Fix a regression introduced in 1646bbbe that prevented remote errors to propagate to the calling client

This commit is contained in:
2021-04-27 09:33:19 +02:00
parent 5d9dd82a7d
commit fb3aeaf813

View File

@@ -258,6 +258,7 @@ class SocketlibSocket {
} }
catch (e) { catch (e) {
console.error(`An exception occured while executing handler '${name}'.`); console.error(`An exception occured while executing handler '${name}'.`);
this._sendError(id, MESSAGE_TYPES.EXCEPTION);
throw e; throw e;
} }
this._sendResult(id, result); this._sendResult(id, result);