mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +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]
|
#[track_caller]
|
||||||
pub fn error(message: &str) {
|
pub fn error(message: &str) {
|
||||||
if message.contains('\n') {
|
if message.contains('\n') {
|
||||||
panic!("cannot emit warning: message contains newline");
|
panic!("cannot emit error: message contains newline");
|
||||||
}
|
}
|
||||||
emit("error", message);
|
emit("error", message);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user