diff options
Diffstat (limited to 'l10ntools/source/localize.cxx')
-rw-r--r-- | l10ntools/source/localize.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index b608ee00959b..b19521ad84c6 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -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 |