mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
fix(build-rs): Correctly refer to the item in assert
Follow up to #14910
This commit is contained in:
parent
bcc217d744
commit
f8e51543af
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user