mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
[Crash] Fix crash issue during database dump (#4127)
This commit is contained in:
1 parent
103a37e762
commit
aa0ca88d9d
1 file changed
+6
-1
@@ -575,7 +575,12 @@ void DatabaseDumpService::RemoveSqlBackup()
|
||||
{
|
||||
std::string file = fmt::format("{}.sql", GetDumpFileNameWithPath());
|
||||
if (File::Exists(file)) {
|
||||
std::filesystem::remove(file);
|
||||
try {
|
||||
std::filesystem::remove(file);
|
||||
}
|
||||
catch (std::exception &e) {
|
||||
LogError("std::filesystem::remove err [{}]", e.what());
|
||||
}
|
||||
}
|
||||
|
||||
RemoveCredentialsFile();
|
||||
|
||||
Reference in new issue
Block a user