소스 검색

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>,
     },