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

chore(medusa): Move formatException to the errorHandler to be always applied and not have to apply it manually #2467

Merged
merged 3 commits into from
Oct 19, 2022

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Oct 19, 2022

What

Move the usage of the formatException to the errorHandler level in order to not have to try catch here and there to apply it. Also make our error handling uniformed and avoid forgetting to apply it.

FIXES CORE-721

@changeset-bot
Copy link

changeset-bot bot commented Oct 19, 2022

⚠️ No Changeset found

Latest commit: ab791a8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@adrien2p adrien2p closed this Oct 19, 2022
@adrien2p adrien2p reopened this Oct 19, 2022
@adrien2p adrien2p marked this pull request as ready for review October 19, 2022 10:02
@adrien2p adrien2p requested a review from a team as a code owner October 19, 2022 10:02
@adrien2p adrien2p force-pushed the chore/move-format-exception-to-errorHandler branch from 236a091 to bcb5c31 Compare October 19, 2022 10:02
@adrien2p adrien2p closed this Oct 19, 2022
@adrien2p adrien2p reopened this Oct 19, 2022
Copy link
Collaborator

@srindom srindom left a comment

Choose a reason for hiding this comment

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

LGTM!

@kodiakhq kodiakhq bot merged commit 2f00bd1 into develop Oct 19, 2022
@kodiakhq kodiakhq bot deleted the chore/move-format-exception-to-errorHandler branch October 19, 2022 16:22
ymaheshwari1 pushed a commit to ymaheshwari1/medusa that referenced this pull request Oct 26, 2022
…applied and not have to apply it manually (medusajs#2467)

**What**

Move the usage of the formatException to the errorHandler level in order to not have to try catch here and there to apply it. Also make our error handling uniformed and avoid forgetting to apply it.

FIXES CORE-721
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.

3 participants