improved Zip error handling (getting rid of poco_assert)

This commit is contained in:
Günter Obiltschnig
2016-09-29 19:13:21 +02:00
parent 4a96c934ba
commit 0e0fac80b6
7 changed files with 32 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ Decompress::Decompress(std::istream& in, const Poco::Path& outputDir, bool flatt
{
_outDir.makeAbsolute();
_outDir.makeDirectory();
poco_assert (_in.good());
if (!_in.good()) throw Poco::IOException("Bad input stream");
Poco::File tmp(_outDir);
if (!tmp.exists())
{