From f8e51543af71ee6da839c2a79ab37301f00367c6 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 9 Dec 2024 14:00:56 -0600 Subject: [PATCH] fix(build-rs): Correctly refer to the item in assert Follow up to #14910 --- crates/build-rs/src/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }