Skip to content

Commit 68795c2

Browse files
committed
add source macro
1 parent 74d24f3 commit 68795c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libbpf-cargo/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ mod test;
8888
/// Canonical error type for this crate.
8989
#[derive(Error, Debug)]
9090
pub enum Error {
91-
#[error(transparent)]
92-
Build(anyhow::Error),
93-
#[error(transparent)]
94-
Generate(anyhow::Error),
91+
#[error("Error building BPF object file {0}")]
92+
Build(#[source]anyhow::Error),
93+
#[error("Error generating skeleton {0}")]
94+
Generate(#[source]anyhow::Error),
9595
}
9696

9797
pub type Result<T> = result::Result<T, Error>;

0 commit comments

Comments
 (0)