mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 11:02:11 +03:00
Print errors to stderr instead of stdout
This commit is contained in:
parent
7cef4a66b8
commit
6f95e5c531
@ -63,9 +63,9 @@ fn main() {
|
||||
Ok(()) => return,
|
||||
Err(e) => e,
|
||||
};
|
||||
println!("error: {}", err);
|
||||
eprintln!("error: {}", err);
|
||||
for cause in err.causes().skip(1) {
|
||||
println!("\tcaused by: {}", cause);
|
||||
eprintln!("\tcaused by: {}", cause);
|
||||
}
|
||||
process::exit(1);
|
||||
}
|
||||
|
@ -50,9 +50,9 @@ fn main() {
|
||||
Ok(()) => return,
|
||||
Err(e) => e,
|
||||
};
|
||||
println!("error: {}", err);
|
||||
eprintln!("error: {}", err);
|
||||
for cause in err.causes().skip(1) {
|
||||
println!("\tcaused by: {}", cause);
|
||||
eprintln!("\tcaused by: {}", cause);
|
||||
}
|
||||
process::exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user