Fix check_uptime faulty behavior when using -u

fixes #8327
This commit is contained in:
Jean Flach 2015-02-02 13:30:10 +01:00
parent 3b3a65c9ae
commit 0e7b8d16e2
1 changed files with 3 additions and 2 deletions

View File

@ -163,8 +163,9 @@ int parseArguments(int ac, wchar_t **av, po::variables_map& vm, printInfoStruct&
try{ try{
printInfo.unit = parseTUnit(vm["unit"].as<wstring>()); printInfo.unit = parseTUnit(vm["unit"].as<wstring>());
} catch (std::invalid_argument) { } catch (std::invalid_argument) {
wcout << L"Unknown unit type " << vm["unit"].as<wstring>() << endl;
} wcout << L"Unknown unit type " << vm["unit"].as<wstring>() << endl; return 3;
}
} else } else
printInfo.unit = TunitS; printInfo.unit = TunitS;