From b37f9d4b27ec53531fbd7842b1efc4d105449dec Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Thu, 5 Sep 2024 19:17:21 +0200 Subject: [PATCH] Better error when non required pass failed to build (#2509) --- libafl_cc/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libafl_cc/build.rs b/libafl_cc/build.rs index 5154d593d6..3ccf228b99 100644 --- a/libafl_cc/build.rs +++ b/libafl_cc/build.rs @@ -207,15 +207,15 @@ fn build_pass( if required { panic!("Failed to compile required compiler pass src/{src_file} - Exit status: {s}"); } else { - println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}"); + println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}. You can ignore this error."); } } } Err(err) => { if required { - panic!("Failed to compile required compiler pass src/{src_file} - Error: {err}"); + panic!("Failed to compile required compiler pass src/{src_file} - Exit status: {s}"); } else { - println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Error: {err}"); + println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}. You can ignore this error."); } } }