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

Design and implement an effective error message sub-system for our .Net code generation tool #47667

Open
6 tasks
ArthurMa1978 opened this issue Dec 26, 2024 · 0 comments
Labels
Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation Epic feature-request This issue requires a new behavior in the product in order be resolved.

Comments

@ArthurMa1978
Copy link
Member

ArthurMa1978 commented Dec 26, 2024

We are moving fast, but our tools lack well-designed error messages. Unlike any formal compiler, which provides clear error codes and messages to help developers identify and resolve issues efficiently, we only throw exceptions with lengthy call stack information, which is very user-unfriendly.
Designing an effective error message sub-system is crucial for enhancing user experience and minimizing frustration.
The error message from our tool should be:

  1. Clear and Unambiguous Messages: Ensure that error messages are simple, easy to understand, and contextually relevant. Avoid technical jargon that might confuse users.
  2. Strategic Placement: Position error messages near the relevant field to make it easier for users to identify and correct the issue.
  3. Provide Solutions: Good error messages not only highlight the problem but also offer solutions.
  4. Avoid Blaming the User: Frame error messages in a way that doesn't place blame on the user. For example, instead of saying "You did not specify the format of the property XXX," use "Please specify the form of the property XXX".

Features

Preview Give feedback
No tasks being tracked yet.
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Dec 26, 2024
@ArthurMa1978 ArthurMa1978 added feature-request This issue requires a new behavior in the product in order be resolved. Epic and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Dec 26, 2024
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation Epic feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
Development

No branches or pull requests

2 participants