Skip to content

Commit

Permalink
Invoke error handling (#8454)
Browse files Browse the repository at this point in the history
* Add exception handler in tasks.py

- Catch UnexpectedExit
- Print clear message on the command that failed
- Re-throw exception

* Change c.run to run(c)

- Pass all invoke commands through the exception handler

* Add more info to version command

* Pretty colors

* Remove dummy error

* Improve invoke task output:

- Add colors for different message types
- Add success messages for critical tasks

* Tweaks

* Improve output commands
  • Loading branch information
SchrodingersGat authored Nov 8, 2024
1 parent 9fb93b8 commit ad39d3f
Showing 1 changed file with 147 additions and 86 deletions.
Loading

0 comments on commit ad39d3f

Please sign in to comment.