Skip to content

Commit

Permalink
fix(build-rs): Correctly refer to the item in assert
Browse files Browse the repository at this point in the history
Follow up to #14910
  • Loading branch information
epage committed Dec 9, 2024
1 parent bcc217d commit f8e5154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/build-rs/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f8e5154

Please sign in to comment.