@overmap-ai/core 1.0.24 → 1.0.25-fix-api-error-messages.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.
@@ -3419,7 +3419,14 @@ var __publicField = (obj, key, value) => {
3419
3419
  }
3420
3420
  }
3421
3421
  const apiErrorMessage = ((_a2 = originalError.body) == null ? void 0 : _a2.error) ?? originalError.text ?? originalError.error;
3422
- console.log("API error message (best effort extraction):", apiErrorMessage);
3422
+ console.log(
3423
+ "API error:",
3424
+ originalError,
3425
+ originalError.error,
3426
+ originalError.text,
3427
+ originalError.body,
3428
+ originalError.status
3429
+ );
3423
3430
  throw new APIError(
3424
3431
  typeof apiErrorMessage === "string" ? apiErrorMessage : (
3425
3432
  // TODO: Error codes for all APIErrors.