Skip to content

Commit

Permalink
Log error messages in executables.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanformigoni committed Oct 19, 2024
1 parent 958ce65 commit 66066c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions gui/launcher/src/frame/executables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ fn get_path_db_executable() -> anyhow::Result<std::path::PathBuf>
{
let mut path_db : std::path::PathBuf = std::env::var("GIMG_LAUNCHER_ROOT")?.into();
path_db.push("gameimage.wine.executable.json");

Ok(path_db)
} // get_path_db_executable() }}}

Expand All @@ -75,7 +74,6 @@ fn get_path_db_args() -> anyhow::Result<std::path::PathBuf>
{
let mut path_db : std::path::PathBuf = std::env::var("GIMG_LAUNCHER_ROOT")?.into();
path_db.push("gameimage.wine.args.json");

Ok(path_db)
} // get_path_db_args() }}}

Expand Down Expand Up @@ -194,10 +192,18 @@ pub fn new(tx : Sender<Msg>, x : i32, y : i32) -> RetFrameExecutable
{
if e.value().is_empty()
{
let _ = shared::db::kv::erase(&clone_path_file_db, clone_output_executable.value());
match shared::db::kv::erase(&clone_path_file_db, clone_output_executable.value())
{
Ok(()) => (),
Err(e) => eprintln!("{}", e),
};
return;
}
let _ = shared::db::kv::write(&clone_path_file_db, &clone_output_executable.value(), &e.value());
match shared::db::kv::write(&clone_path_file_db, &clone_output_executable.value(), &e.value())
{
Ok(()) => (),
Err(e) => eprintln!("{}", e),
}
});
clone_scroll.add(&mut input_arguments.as_base_widget());

Expand Down

0 comments on commit 66066c4

Please sign in to comment.