fix(build-rs): Correctly refer to the item in assert

Follow up to #14910
This commit is contained in:
Ed Page 2024-12-09 14:00:56 -06:00
parent bcc217d744
commit f8e51543af

View File

@ -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);
}