Add a log entry if an unrecognized updater mode string is encountered.

This commit is contained in:
Robert Knight 2011-08-21 21:49:51 +01:00
parent 2e285f11a8
commit b49332eaab

View file

@ -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;
}
}