Update panic message

reviewable/pr1229/r5
Thomas Eizinger 3 weeks ago
parent 4742e03482
commit 9f09dc41f9
No known key found for this signature in database
GPG Key ID: 05633CD77196CAF3

@ -144,7 +144,7 @@ macro_rules! prelude {
#[cfg(not(target_arch = "bpf"))]
fn main() {
panic!("This should only ever be called from its eBPF entrypoint")
panic!(r#"eBPF kernels are not designed to be executed in user-space. This main function is only a placeholder to allow the code to compile on the host system (i.e. on any system that is not `target_arch = "bpf"`). This works in tandem with the `no_main` attribute which is only applied when compiling for `target_arch = "bpf"`."#)
}
};
}

Loading…
Cancel
Save