Expose inner errors

Currently aya will just report a standard outer level
error on failure.  Ensure that we also report the inner
error condition back to the user

Signed-off-by: Andrew Stoycos <astoycos@redhat.com>
pull/495/head
Andrew Stoycos 2 years ago
parent 82773f46c8
commit 90ee076aba
No known key found for this signature in database
GPG Key ID: 66735B92BB71C096

@ -905,11 +905,11 @@ pub enum BpfError {
},
/// Error parsing BPF object
#[error("error parsing BPF object")]
#[error("error parsing BPF object: {0}")]
ParseError(#[from] ParseError),
/// Error parsing BTF object
#[error("BTF error")]
#[error("BTF error: {0}")]
BtfError(#[from] BtfError),
/// Error performing relocations
@ -926,11 +926,11 @@ pub enum BpfError {
#[error("no BTF parsed for object")]
NoBTF,
#[error("map error")]
#[error("map error: {0}")]
/// A map error
MapError(#[from] MapError),
#[error("program error")]
#[error("program error: {0}")]
/// A program error
ProgramError(#[from] ProgramError),
}

Loading…
Cancel
Save