mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-17 00:41:11 +00:00
Add a log entry if an unrecognized updater mode string is encountered.
This commit is contained in:
parent
2e285f11a8
commit
b49332eaab
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "UpdaterOptions.h"
|
||||
|
||||
#include "Log.h"
|
||||
#include "AnyOption/anyoption.h"
|
||||
#include <cstdlib>
|
||||
|
||||
|
@ -23,7 +24,10 @@ UpdateInstaller::Mode stringToMode(const std::string& modeStr)
|
|||
}
|
||||
else
|
||||
{
|
||||
std::cout << "unknown mode " << modeStr << std::endl;
|
||||
if (!modeStr.empty())
|
||||
{
|
||||
LOG(Error,"Unknown mode " + modeStr);
|
||||
}
|
||||
return UpdateInstaller::Setup;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue