mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 15:19:21 +01:00
improved Zip error handling (getting rid of poco_assert)
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user