This commit is contained in:
Jędrzej Stuczyński
2023-06-02 17:41:00 +01:00
parent 9782945c92
commit 7a26e2ef57
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -106,10 +106,12 @@ pub(crate) fn execute(args: &Init) {
}
let config_save_location = config.default_location();
config.save_to_default_location().expect(&format!(
"Failed to save the config file to {}",
config_save_location.display()
));
config.save_to_default_location().unwrap_or_else(|_| {
panic!(
"Failed to save the config file to {}",
config_save_location.display()
)
});
eprintln!(
"Saved configuration file to {}",
config_save_location.display()
+1 -1
View File
@@ -242,7 +242,7 @@ async fn load_or_generate_base_config(
return setup_new_client_config(None, client_id, service_provider).await;
};
let expected_store_path = config_filepath_from_root(&storage_dir, &client_id.to_string());
let expected_store_path = config_filepath_from_root(&storage_dir, &client_id);
eprintln!(
"attempting to load socks5 config from {}",
expected_store_path.display()