threefoldtech / zinit

A init replacement that feels like runit written in rust+tokio
Apache License 2.0
10 stars 1 forks source link

Improve error reporting message #14

Closed maxux closed 4 years ago

maxux commented 5 years ago

Error reporting are not really useful, like:

No such file or directory (os error 2)

or

ERROR [zinit::app] failed to start ring buffer server: Permission denied (os error 13)
ERROR [zinit::app] failed to start ctrl api Permission denied (os error 13)

Which file, for what, etc. ? The os error number is quite useless (ENOENT or EACCES would be more useful than 2 or 13)

path: errstr

like

/etc/zinit: No such file or directory
ERROR [zinit::app] failed to start ring buffer server: /var/run/log.sock: Permission denied