eprintln for errors
This commit is contained in:
parent
5e944d0f45
commit
8632391566
2 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ pub fn create_output(muted: bool) -> (AudioOutput, Stream) {
|
|||
}
|
||||
},
|
||||
move |err| {
|
||||
println!("audio error: {err}");
|
||||
eprintln!("audio error: {err}");
|
||||
},
|
||||
None,
|
||||
)
|
||||
|
@ -58,7 +58,7 @@ pub fn create_output(muted: bool) -> (AudioOutput, Stream) {
|
|||
}
|
||||
},
|
||||
move |err| {
|
||||
println!("audio error: {err}");
|
||||
eprintln!("audio error: {err}");
|
||||
},
|
||||
None,
|
||||
)
|
||||
|
|
|
@ -78,7 +78,7 @@ where
|
|||
match fs::read(path) {
|
||||
Ok(data) => Rom::load(data, maybe_save, camera.clone()),
|
||||
Err(e) => {
|
||||
println!("Error reading ROM: {e}");
|
||||
eprintln!("Error reading ROM: {e}");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ where
|
|||
RomFile::Path(path) => match fs::read(path) {
|
||||
Ok(data) => data,
|
||||
Err(e) => {
|
||||
println!("Error reading bootROM: {e}");
|
||||
eprintln!("Error reading bootROM: {e}");
|
||||
exit(1);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue