We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a6c884 commit 2ac7140Copy full SHA for 2ac7140
common/src/lib.rs
@@ -66,7 +66,7 @@ impl<'a> Kernel<'a> {
66
let config = {
67
let section = kernel_elf
68
.find_section_by_name(".bootloader-config")
69
- .unwrap();
+ .expect("bootloader config section not found; kernel must be compiled against bootloader_api");
70
let raw = section.raw_data(&kernel_elf);
71
BootloaderConfig::deserialize(raw)
72
.expect("kernel was compiled with incompatible bootloader_api version")
0 commit comments