@ai-ecoverse/slicc-kernel 1.59.0 → 1.60.0

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.
@@ -1516,7 +1516,7 @@ function decodeSabResult(status2, payload) {
1516
1516
  case SAB_STATUS_ERRNO: {
1517
1517
  try {
1518
1518
  const parsed = JSON.parse(decoder.decode(payload));
1519
- const errno2 = typeof parsed.errno === "string" && /^E[A-Z]+$/.test(parsed.errno) ? parsed.errno : "EIO";
1519
+ const errno2 = typeof parsed.errno === "string" && /^E[A-Z]+$|^EAI_[A-Z]+$/.test(parsed.errno) ? parsed.errno : "EIO";
1520
1520
  return { ok: false, errno: errno2, message: String(parsed.message ?? errno2) };
1521
1521
  } catch {
1522
1522
  return { ok: false, errno: "EIO", message: "sync-sab: malformed errno payload" };