diff --git a/crates/build-rs/src/output.rs b/crates/build-rs/src/output.rs index 013bc4fc125..a1c047e941d 100644 --- a/crates/build-rs/src/output.rs +++ b/crates/build-rs/src/output.rs @@ -418,7 +418,7 @@ pub fn warning(message: &str) { #[track_caller] pub fn error(message: &str) { if message.contains('\n') { - panic!("cannot emit warning: message contains newline"); + panic!("cannot emit error: message contains newline"); } emit("error", message); }