don't display errorcode when no errors occured

This commit is contained in:
tihmstar 2017-01-02 00:30:08 +01:00
parent dafb02dbdf
commit d7bc2b6a60

View file

@ -219,7 +219,7 @@ int main(int argc, const char * argv[]) {
}
error:
if (res) cout << "Failed with errorcode="<<err << endl;
if (err) cout << "Failed with errorcode="<<err << endl;
return err;
#undef reterror
}