lucas-labs / coco

🥥 coco » interactive cli for creating conventional commits.
MIT License
3 stars 0 forks source link

✨ » handle errors better #5

Closed lucas-labs closed 1 month ago

lucas-labs commented 1 month ago

Display errors when they happen. Not only for committing but for all, including any possible panics that might occur.

Maybe using human-panic or some kind of custom hook to catch panics and display them to the user in our own way?

A way to make the program panic to see how bad it is right now, we can set a bad config like:

askBody: x  # bad boolean value

Extracted from:

https://github.com/lucas-labs/coco/blob/1d74e057f2481fb1b72858524eec000b6e8cea11/coco/src/view/app_router.rs#L88-L94

lucas-labs commented 1 month ago

Joined with #3 Closed this one as duplicated