Skip to content

Conversation

@hkt74
Copy link
Collaborator

@hkt74 hkt74 commented Feb 27, 2025

Fixes #303

@hkt74 hkt74 requested review from IvanLH and hsubox76 February 27, 2025 18:27
@hkt74 hkt74 requested a review from IvanLH March 1, 2025 00:07
} else {
err = new GoogleGenerativeAIError(
"Error reading from the stream",
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just do throw new GoogleGenerativeAIError('Failed to perform operation', { cause: error }); Error supports cause, and I think it negates the need for specific classes.

@hkt74 hkt74 requested a review from IvanLH March 1, 2025 00:36
@IvanLH IvanLH merged commit da7ed0e into main Mar 3, 2025
9 checks passed
@IvanLH IvanLH deleted the abortError branch March 3, 2025 17:07
@KiGamji
Copy link

KiGamji commented Mar 3, 2025

@danny-avila

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unhandled AbortError causes Unhandled Rejection

3 participants