From a3238d901786b5142b44520376d7ba22dcdfe0ce Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sat, 11 Jul 2026 06:55:34 +0300 Subject: [PATCH] add fexec error reporting --- bootstrap/src/exec.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap/src/exec.rs b/bootstrap/src/exec.rs index fdf781b54c..94ca47150a 100644 --- a/bootstrap/src/exec.rs +++ b/bootstrap/src/exec.rs @@ -246,6 +246,10 @@ pub fn main() -> ! { &extrainfo, None, ) + .map_err(|e| { + let _ = libredox::call::write(1, alloc::format!("fexec_impl failed: {}\n", e).as_bytes()); + e + }) .expect("failed to execute init"); // According to elf(5), PT_INTERP requires that the interpreter path be