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