Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Jul 4, 2025

Bundlers (and runtimes) can sometimes rename class name for HTTPError which makes it unreliable for checking.

This PR adds HTTPError.name: "HTTPError" also safer HTTPError.isError check.

@cloudflare-workers-and-pages
Copy link

Deploying h3dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: c65a888
Status: ✅  Deploy successful!
Preview URL: https://143cfbd7.h3dev.pages.dev
Branch Preview URL: https://fix-safe-is-error.h3dev.pages.dev

View logs

@pi0 pi0 merged commit 60b8654 into main Jul 4, 2025
4 checks passed
@pi0 pi0 deleted the fix/safe-is-error branch July 4, 2025 13:14
@codecov
Copy link

codecov bot commented Jul 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

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.

2 participants