浏览代码

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

Alessandro Decina 3 年之前
父节点
当前提交
20b2d4c77d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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>,
     },