@north-light/api 0.3.434 → 0.3.435

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.
Files changed (2) hide show
  1. package/dist/core/io.js +1 -1
  2. package/package.json +1 -1
package/dist/core/io.js CHANGED
@@ -313,7 +313,7 @@ export function apiErrorToCliError(err, next) {
313
313
  ? d
314
314
  : {
315
315
  error: STATUS_TO_CLI_CODE[err.status] ?? err.code,
316
- message: violations.length > 0 ? `${err.message}: ${violations.join('; ')}` : err.message,
316
+ message: violations.length > 0 ? `${err.message}: ${violations.join('; ')}` : err.message.trim() !== '' ? err.message : `request refused (HTTP ${err.status}, ${err.code}) with no message`,
317
317
  next: next ??
318
318
  (err.status >= 500
319
319
  ? 'This is a crtr bug, not a bad call. Retry; if it persists, report it (the daemon log holds the full cause).'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/api",
3
- "version": "0.3.434",
3
+ "version": "0.3.435",
4
4
  "description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/api/index.js",