eprintln for errors

This commit is contained in:
Alex Janka 2023-05-26 11:10:35 +10:00
parent 5e944d0f45
commit 8632391566
2 changed files with 4 additions and 4 deletions

View file

@ -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,
)

View file

@ -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);
}
},