Skip to content

fix: make error message matching more generic #1988

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

Merged
merged 3 commits into from
Mar 14, 2023
Merged

fix: make error message matching more generic #1988

merged 3 commits into from
Mar 14, 2023

Conversation

sarahetter
Copy link

Summary

Some async business is messing with the idx value, where it's idx=z (strangely 1 more than we'd expect) when entering the catch condition, but idx=z-1 (correct value) when comparing in the if statement in the catch.

We know that the correct values are being used when comparing, and the value of the middleware.js#x doesn't matter when the catch occurs, we just want to return silently.

Test plan

  1. Visit the Deploy Preview (insert link to specific page) ...

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

Fixes #1983

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@sarahetter sarahetter requested a review from a team March 14, 2023 15:15
@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/64108f9afd34880008568334
😎 Deploy Preview https://deploy-preview-1988--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/64108f9a5a73da000878f15a
😎 Deploy Preview https://deploy-preview-1988--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/64108f9ac378ce0008084270
😎 Deploy Preview https://deploy-preview-1988--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit ae1e383
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/64108f8c146dff0008188822
😎 Deploy Preview https://deploy-preview-1988--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit ae1e383
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/64108f8c0a6413000801291a
😎 Deploy Preview https://deploy-preview-1988--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/64108f9a0d02400008fe8daf
😎 Deploy Preview https://deploy-preview-1988--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/64108f9aea1f940008cc3b66
😎 Deploy Preview https://deploy-preview-1988--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/64108f9ac378ce0008084275
😎 Deploy Preview https://deploy-preview-1988--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sarahetter sarahetter changed the title Se/bugfix fix: make error message matching more generic Mar 14, 2023
@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/64108f9a595b87000875a55f
😎 Deploy Preview https://deploy-preview-1988--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/64108f9a595b87000875a55a
😎 Deploy Preview https://deploy-preview-1988--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Mar 14, 2023
@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit b5bd50b
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/64108f9a5d150a000895af01
😎 Deploy Preview https://deploy-preview-1988--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

Looks good @sarahetter! :shipit:

@kodiakhq kodiakhq bot merged commit cfc8e96 into main Mar 14, 2023
@kodiakhq kodiakhq bot deleted the se/bugfix branch March 14, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
2 participants