mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 08:20:57 +00:00
[Backups] Fix database dump error reporting (#3175)
* [Backups] Fix database dump error reporting * Update database_dump_service.cpp
This commit is contained in:
1 parent
ff2af0c49e
commit
3e30e78158
6 files changed
+71
-13
No files matched your search
@@ -4,7 +4,8 @@
|
||||
|
||||
std::string Process::execute(const std::string &cmd)
|
||||
{
|
||||
std::shared_ptr<FILE> pipe(popen(cmd.c_str(), "r"), pclose);
|
||||
std::string command = fmt::format("{} 2>&1", cmd);
|
||||
std::shared_ptr<FILE> pipe(popen(command.c_str(), "r"), pclose);
|
||||
if (!pipe) { return "ERROR"; }
|
||||
char buffer[128];
|
||||
std::string result;
|
||||
|
||||
Reference in new issue
Block a user