Kaydet (Commit) 0552b433 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Check return value of system()

Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392
üst 33b0684d
......@@ -284,7 +284,13 @@ void handleFilesOfDir(
aPOStream.close();
if( bDel )
{
system(OString("rm " + sPotFile).getStr());
if ( system(OString("rm " + sPotFile).getStr()) != 0 )
{
cerr
<< "Error: Cannot remove entryless pot file: "
<< sPotFile.getStr() << "\n";
throw false; //TODO
}
}
}
//Remove empty pot directories
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment