-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Error handling #837
Comments
This comment has been minimized.
This comment has been minimized.
This looks an yo issue. |
This comment has been minimized.
This comment has been minimized.
Is there some action planed by the maintainers? |
This comment has been minimized.
This comment has been minimized.
I will probably move to yo repository, we may have some news about yo maintenance soon. |
This comment has been minimized.
This comment has been minimized.
👋 We do have news about yo maintenance! #838. @TarSzator I'd like to learn more. Could you please post a link to your project and say more about how you've set up your error classes? How do they get thrown now, how you'd like them to impact Yeoman, and any other context you think is relevant? |
@JoshuaKGoldberg Awesome to hear from you 🥳 😃 Since these a company projects I can not share a link, but I will provide more context and information if not tomorrow then over the weekend. I will definitely clear tomorrow with my manager what I can share here 😃 |
Not sure if this is the right spot for my request.
Starting from the following issue:
We use our own error classes. These have an ID which is a number and a code which is an enumeration.
When these errors are thrown the error message is written but we also get this error:
Goal:
I would like to influence the error handling from yeoman. So I would like to provide a function to yeoman that is triggered with the error and what ever I return is printed to the console.
Advantage:
With this I could prevent the check if
code
is a number.And I could also improve the output to be more then just the message property of my error
Question:
Does already exist a way to do this? I did not find it in the documentation.
Note:
I am aware of the error event but this does not help me with the code error issue.
The text was updated successfully, but these errors were encountered: