Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly handle ErrorResponse inside resource routes #6320

Merged
merged 5 commits into from
May 23, 2023

Conversation

brophdawg11
Copy link
Contributor

Closes #5507

@changeset-bot
Copy link

changeset-bot bot commented May 5, 2023

🦋 Changeset detected

Latest commit: c9528f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@remix-run/server-runtime Patch
@remix-run/cloudflare Patch
@remix-run/deno Patch
@remix-run/dev Patch
@remix-run/node Patch
@remix-run/react Patch
@remix-run/cloudflare-pages Patch
@remix-run/cloudflare-workers Patch
create-remix Patch
@remix-run/css-bundle Patch
@remix-run/architect Patch
@remix-run/express Patch
@remix-run/netlify Patch
@remix-run/serve Patch
@remix-run/testing Patch
@remix-run/vercel Patch
remix Patch
@remix-run/eslint-config Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brophdawg11 brophdawg11 linked an issue May 5, 2023 that may be closed by this pull request
1 task
if (isRouteErrorResponse(error) && error.error) {
logServerErrorIfNotAborted(error.error, request, serverMode);
return errorResponseToJson(error, serverMode);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had this for data requests but not for resource requests

@brophdawg11 brophdawg11 force-pushed the brophdawg11/resource-route-error-response branch from 6e04115 to 26af8c0 Compare May 5, 2023 14:58
@brophdawg11 brophdawg11 merged commit 8a50a2a into dev May 23, 2023
@brophdawg11 brophdawg11 deleted the brophdawg11/resource-route-error-response branch May 23, 2023 17:16
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version v0.0.0-nightly-c90c16e-20230524 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

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

Successfully merging this pull request may close these issues.

Missing action Function Returns 500 Instead of 405
2 participants