Browse Source

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

Alessandro Decina 3 years ago
parent
commit
20b2d4c77d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      aya/src/bpf.rs

+ 1 - 0
aya/src/bpf.rs

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