claude-simple 0.2.32 → 0.2.34

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.
package/client.js CHANGED
@@ -450,7 +450,9 @@ function connect() {
450
450
  body,
451
451
  });
452
452
  } catch (e) {
453
- sendControl({ type: 'http-res', reqId: msg.reqId, status: e.status || 502, headers: {}, body: e.message });
453
+ sendControl(msg.transfer
454
+ ? { type: 'http-error', reqId: msg.reqId, status: e.status || 502, message: e.message }
455
+ : { type: 'http-res', reqId: msg.reqId, status: e.status || 502, headers: {}, body: e.message });
454
456
  }
455
457
  return;
456
458
  }