Currently enum Error uses {0} to show the source error message. However, when printing with AnyHow {:#} format this results in duplicated error message:
sqlx error: foobar: foobar
It seems that #[error(transparent)] is a better choice for nested errors.
Currently
enum Error
uses{0}
to show the source error message. However, when printing with AnyHow{:#}
format this results in duplicated error message:It seems that
#[error(transparent)]
is a better choice for nested errors.