Skip to content

Commit

Permalink
add source macro
Browse files Browse the repository at this point in the history
  • Loading branch information
taikulawo committed Jul 14, 2023
1 parent 74d24f3 commit 68795c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libbpf-cargo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ mod test;
/// Canonical error type for this crate.
#[derive(Error, Debug)]
pub enum Error {
#[error(transparent)]
Build(anyhow::Error),
#[error(transparent)]
Generate(anyhow::Error),
#[error("Error building BPF object file {0}")]
Build(#[source]anyhow::Error),
#[error("Error generating skeleton {0}")]
Generate(#[source]anyhow::Error),
}

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

0 comments on commit 68795c2

Please sign in to comment.