mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-12 09:09:01 +01:00
better error message (#834)
This commit is contained in:
1 parent
12280bb35b
commit
1184d3d77a
1 file changed
+3
-1
+3
-1
@@ -88,7 +88,9 @@ pub fn create_savestate(device: &device::Device) {
|
||||
let save_path = device.ui.storage.paths.savestate_file_path.clone();
|
||||
if let Ok(compressed_file) = ui::storage::compress_file(data) {
|
||||
tokio::spawn(async move {
|
||||
tokio::fs::write(save_path, compressed_file).await.unwrap();
|
||||
if let Err(e) = tokio::fs::write(save_path, compressed_file).await {
|
||||
eprintln!("Error writing savestate: {}", e);
|
||||
}
|
||||
});
|
||||
}
|
||||
ui::video::onscreen_message(
|
||||
|
||||
Reference in new issue
Block a user