mirror of https://github.com/Icinga/icinga2.git
parent
3b3a65c9ae
commit
0e7b8d16e2
|
@ -163,8 +163,9 @@ int parseArguments(int ac, wchar_t **av, po::variables_map& vm, printInfoStruct&
|
|||
try{
|
||||
printInfo.unit = parseTUnit(vm["unit"].as<wstring>());
|
||||
} 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
|
||||
printInfo.unit = TunitS;
|
||||
|
||||
|
|
Loading…
Reference in New Issue