mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
patch_manager: log g_tls_error
This commit is contained in:
parent
676fed7cfc
commit
fb62c297fa
@ -73,7 +73,7 @@ std::string patch_engine::get_patch_config_path()
|
|||||||
|
|
||||||
if (!fs::create_path(config_dir))
|
if (!fs::create_path(config_dir))
|
||||||
{
|
{
|
||||||
patch_log.error("Could not create path: %s", patch_path);
|
patch_log.error("Could not create path: %s (%s)", patch_path, fs::g_tls_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
return patch_path;
|
return patch_path;
|
||||||
@ -825,7 +825,7 @@ void patch_engine::save_config(const patch_map& patches_map, bool enable_legacy_
|
|||||||
fs::file file(path, fs::rewrite);
|
fs::file file(path, fs::rewrite);
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
patch_log.fatal("Failed to open patch config file %s", path);
|
patch_log.fatal("Failed to open patch config file %s (%s)", path, fs::g_tls_error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -978,8 +978,8 @@ bool patch_engine::save_patches(const patch_map& patches, const std::string& pat
|
|||||||
fs::file file(path, fs::rewrite);
|
fs::file file(path, fs::rewrite);
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
patch_log.fatal("save_patches: Failed to open patch file %s", path);
|
patch_log.fatal("save_patches: Failed to open patch file %s (%s)", path, fs::g_tls_error);
|
||||||
append_log_message(log_messages, fmt::format("Failed to open patch file %s", path));
|
append_log_message(log_messages, fmt::format("Failed to open patch file %s (%s)", path, fs::g_tls_error));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -846,7 +846,7 @@ void patch_manager_dialog::download_update()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
patch_log.error("Could not open patch file: %s", path);
|
patch_log.error("Could not open patch file: %s (%s)", path, fs::g_tls_error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -945,7 +945,7 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
|
|||||||
if (const std::string path_old = path + ".old";
|
if (const std::string path_old = path + ".old";
|
||||||
!fs::copy_file(path, path_old, true))
|
!fs::copy_file(path, path_old, true))
|
||||||
{
|
{
|
||||||
patch_log.error("Could not back up current patches to %s", path_old);
|
patch_log.error("Could not back up current patches to %s (%s)", path_old, fs::g_tls_error);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -957,7 +957,7 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
patch_log.error("Could not save new patches to %s", path);
|
patch_log.error("Could not save new patches to %s (%s)", path, fs::g_tls_error);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user