Fix a regression introduced in 1646bbbe that prevented remote errors to propagate to the calling client
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user