2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-26 23:03:13 +00:00

error msg

This commit is contained in:
2024-02-06 17:36:58 +03:00
parent 757d949c18
commit 84bf9fa539
6 changed files with 1509 additions and 5494 deletions

View File

@ -909,7 +909,7 @@ var AsyncException = /*#__PURE__*/function (_Error) {
this.type = type;
this.code = code;
if (type == 0) {
if (type == 0 && message == null) {
for (var i in _ExceptionCode["default"]) {
if (_ExceptionCode["default"][i] == code) {
this.message = i;
@ -10738,9 +10738,9 @@ var WSocket = /*#__PURE__*/function (_ISocket) {
rt.trigger(true);
};
ws.onerror = function () {
ws.onerror = function (ee) {
self.state = _SocketState["default"].Closed;
rt.triggerError(_ErrorType["default"].Management, _ExceptionCode["default"].HostNotReachable);
rt.triggerError(_ErrorType["default"].Management, _ExceptionCode["default"].HostNotReachable, ee.message);
};
self._assign(ws);