better error message (#834)

This commit is contained in:
Logan McNaughton authored and GitHub committed 2026-05-03 14:22:50 +00:00
1 parent 12280bb35b
commit 1184d3d77a
1 file changed
+3 -1
+3 -1
View File
@@ -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(