aya: BpfError: set the #[source] attribute for RelocationErrors

pull/1/head
Alessandro Decina 3 years ago
parent 6974d349e8
commit 20b2d4c77d

@ -371,6 +371,7 @@ pub enum BpfError {
#[error("error relocating `{function}`")]
RelocationError {
function: String,
#[source]
error: Box<dyn Error + Send + Sync>,
},

Loading…
Cancel
Save