Skip to content

Commit f8e5154

Browse files
committed
fix(build-rs): Correctly refer to the item in assert
Follow up to rust-lang#14910
1 parent bcc217d commit f8e5154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/build-rs/src/output.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub fn warning(message: &str) {
418418
#[track_caller]
419419
pub fn error(message: &str) {
420420
if message.contains('\n') {
421-
panic!("cannot emit warning: message contains newline");
421+
panic!("cannot emit error: message contains newline");
422422
}
423423
emit("error", message);
424424
}

0 commit comments

Comments
 (0)