You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error handling and error readability for all commands (#1614)
* fix(cli): improve error handling and error readability for all commands
* chore: bug fix text moved
* fix(cli): consolidate fail() handler message and set exitCode=1 for errors
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-cli/sessions/9e5da6c9-348d-43b7-8bc9-e0b558ebbab3
Co-authored-by: ivanvpetrov <110455887+ivanvpetrov@users.noreply.github.com>
* fix(cli): replace showHelp with getHelp
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Konstantin Dinev <kdinev@infragistics.com>
Co-authored-by: onlyexeption <ibarakov@infragistics.com>
* **CLI error handling:** added `.fail()` handler to yargs to gracefully handle command validation errors (e.g., missing required subcommands) instead of showing raw stack traces ([#1614](https://github.com/IgniteUI/igniteui-cli/pull/1614))
88
+
* **Unknown command detection:** running `ig <unknown>` now prints an error message and available commands instead of silently falling through to the step-by-step interactive mode ([#1614](https://github.com/IgniteUI/igniteui-cli/pull/1614))
89
+
* **Unhandled promise rejection:** added `.catch()` in the CLI entry point to catch and display unexpected errors cleanly ([#1614](https://github.com/IgniteUI/igniteui-cli/pull/1614))
0 commit comments