Print underlying serialisation errors (#417)

This commit is contained in:
Naïm Favier 2022-01-25 16:03:21 +01:00 committed by GitHub
parent 7d80f60fd9
commit ec4dbe03a4
Failed to generate hash of commit

View file

@ -183,9 +183,9 @@ async fn main() -> Result<()> {
#[derive(Debug, Error)]
enum FlakeInfoError {
#[error("Getting flake info caused an error: {0}")]
#[error("Getting flake info caused an error: {0:?}")]
Flake(anyhow::Error),
#[error("Getting nixpkgs info caused an error: {0}")]
#[error("Getting nixpkgs info caused an error: {0:?}")]
Nixpkgs(anyhow::Error),
#[error("Getting group info caused one or more errors: {0:?}")]
Group(Vec<anyhow::Error>),