-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
generatorIssues or improvements relater to generation capabilities.Issues or improvements relater to generation capabilities.good first issueGood for newcomersGood for newcomerstype:taskGeneral task, can be long-running typeGeneral task, can be long-running type
Description
We were having issues with a badly formatted json for using the flags extension (please more documentation on this).
The error message was something like: source cannot be null (very unhelpful). For now I got the Kiota source, put a try-catch around the command in the Main(...) method.
This gave me way more information, and pointed us in the right direction.
Some ideas that could make this process better:
- Try-catch around the parsing of the specs, with a decent log message
logger.LogWarning(ex, "Error parsing specification {Path}", specsPath)with a rethrow so it still fails. - try-catch in the main method, that as a last ditch effort just writes the entire exception to the console (what if something is wrong with the logger setup)
Metadata
Metadata
Assignees
Labels
generatorIssues or improvements relater to generation capabilities.Issues or improvements relater to generation capabilities.good first issueGood for newcomersGood for newcomerstype:taskGeneral task, can be long-running typeGeneral task, can be long-running type
Type
Projects
Status
Proposed 💡