From d989b26587d45e13507b296b19a57590cd6f44b7 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Wed, 14 Feb 2024 13:09:40 -0500 Subject: [PATCH] chore: print out full compiler arguments ran when it fails --- cli/loader/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs index b6f30b89..319a8cc1 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -566,9 +566,9 @@ impl Loader { command.arg("-xc").arg(parser_path); } - let output = command - .output() - .with_context(|| "Failed to execute C compiler")?; + let output = command.output().with_context(|| { + format!("Failed to execute the C compiler with the following command:\n{command:?}") + })?; lock_file.unlock()?; fs::remove_file(lock_path)?;