DEV Community

Discussion on: Error handling of CLI applications in Golang

Collapse
 
jhelberg profile image
Joost Helberg

I totally agree! Errors are a matter of abstractionlevels, and the exit/panic ones are limited to the highest level only: main(). Every abstractionlevel has its own set of errors, probably translating lower levels ones to higher level ones. Until main() that is, there it is just exit or panic.