sdbus-c++-xml2cpp: fixed file existence condition

fixes issue: https://github.com/Kistler-Group/sdbus-cpp/issues/83
This commit is contained in:
Viliam Lejcik
2020-02-04 09:50:17 +01:00
committed by Stanislav Angelovič
parent 21820f7529
commit ae57c6760b

View File

@ -149,7 +149,7 @@ int main(int argc, char **argv)
std::ifstream input(xmlFile);
if (input.bad())
if (input.fail())
{
std::cerr << "Unable to open file " << xmlFile << endl;
return 1;