@ai-ecoverse/slicc-kernel 1.169.0 → 1.170.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -297,10 +297,12 @@ var MessageQueue = class {
297
297
  var TransportError = class extends Error {
298
298
  status;
299
299
  code;
300
- constructor(message, status, code) {
300
+ detail;
301
+ constructor(message, status, code, detail) {
301
302
  super(message);
302
303
  this.status = status;
303
304
  this.code = code;
305
+ this.detail = detail === "transport" ? detail : void 0;
304
306
  }
305
307
  };
306
308
  var RemoteTransport = class {
@@ -326,7 +328,7 @@ var RemoteTransport = class {
326
328
  if (!waiter) return;
327
329
  this.waiting.delete(reply.nid);
328
330
  if (reply.net === "error") {
329
- waiter.reject(new TransportError(reply.message, reply.status, reply.code));
331
+ waiter.reject(new TransportError(reply.message, reply.status, reply.code, reply.detail));
330
332
  } else waiter.resolve(reply);
331
333
  }
332
334
  toSocket(reply, socket) {