nydus
nydus copied to clipboard
Use thiserror crate to simply errors across the repo
Errors like DaemonError, RafsError can be simplified with the abilities provided in thiserror crate.
For instance, display, from can be derived directly if using thiserror.
Thanks for your suggestion. It sounds like a good idea.
#1027 PR seems to have resolved this issue
It seems only part of them be handled in https://github.com/dragonflyoss/image-service/pull/1027 ?
Addition: the target of using thiserror & andhow is to remove the api/src/error.rs file.