leonardochaia/dotnet-affected

Improve error handling

Opened this issue · 0 comments

Currently when there's any exception (except for the NoChangesException) full stacktrace is shown to the end user.

We should throw known exceptions and using the error middleware convert them to an exit code and a view explaining what happened.

We shoould also catch infra exceptions (like git repo not found at path) and convert them to something we can understand.