diff --git a/build.rs b/build.rs index 84f3e92..e47fdd7 100644 --- a/build.rs +++ b/build.rs @@ -157,9 +157,9 @@ fn main() { file.write_all(&pretty_format) .expect("failed to write to `manifest.pretty`"); } - Err(e) => panic!("Ruby script {script} not found : error {}", e), + Err(e) => {println!("\x1b[33mcargo:warning=Ruby script {script} not found : error {}\x1b[0m", e)}, } } - Err(e) => panic!("Ruby script {script} not found : error {}", e), + Err(e) => println!("\x1b[33mcargo:warning=Ruby script {script} not found : error {}\nSkipping fresh manifest generation\x1b[0m", e), } }