@jaypie/llm 1.2.4 → 1.2.5

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/dist/esm/index.js CHANGED
@@ -3714,7 +3714,8 @@ class RetryExecutor {
3714
3714
  providerRequest: options.context.providerRequest,
3715
3715
  error,
3716
3716
  });
3717
- throw new BadGatewayError();
3717
+ const errorMessage = error instanceof Error ? error.message : String(error);
3718
+ throw new BadGatewayError(errorMessage);
3718
3719
  }
3719
3720
  // Check if error is not retryable
3720
3721
  if (!this.errorClassifier.isRetryable(error)) {
@@ -3726,7 +3727,8 @@ class RetryExecutor {
3726
3727
  providerRequest: options.context.providerRequest,
3727
3728
  error,
3728
3729
  });
3729
- throw new BadGatewayError();
3730
+ const errorMessage = error instanceof Error ? error.message : String(error);
3731
+ throw new BadGatewayError(errorMessage);
3730
3732
  }
3731
3733
  // Warn if this is an unknown error type
3732
3734
  if (!this.errorClassifier.isKnownError(error)) {