We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74d24f3 commit 68795c2Copy full SHA for 68795c2
libbpf-cargo/src/lib.rs
@@ -88,10 +88,10 @@ mod test;
88
/// Canonical error type for this crate.
89
#[derive(Error, Debug)]
90
pub enum Error {
91
- #[error(transparent)]
92
- Build(anyhow::Error),
93
94
- Generate(anyhow::Error),
+ #[error("Error building BPF object file {0}")]
+ Build(#[source]anyhow::Error),
+ #[error("Error generating skeleton {0}")]
+ Generate(#[source]anyhow::Error),
95
}
96
97
pub type Result<T> = result::Result<T, Error>;
0 commit comments