From c266f5bdd600c07924e4b2ceca45c4ce2aae3ff2 Mon Sep 17 00:00:00 2001 From: tjenssen Date: Thu, 27 Sep 2012 18:20:17 +0200 Subject: no matter which verbose mode - warnings should be shown - and creation of the exception shouldn't write the warning - this should be happen in the catch block Change-Id: I574c77fab42845079bda7c0d57c4a4a0bdbe1e7f Reviewed-by: Karsten Heimrich Reviewed-by: Tim Jenssen --- tools/archivegen/archive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/archivegen') diff --git a/tools/archivegen/archive.cpp b/tools/archivegen/archive.cpp index 3b8db3e79..49792f7b5 100644 --- a/tools/archivegen/archive.cpp +++ b/tools/archivegen/archive.cpp @@ -67,9 +67,9 @@ int main(int argc, char *argv[]) QInstallerTools::compressPaths(sourceDirectories, app.arguments().at(1)); return EXIT_SUCCESS; } catch (const Lib7z::SevenZipException &e) { - std::cerr << e.message() << std::endl; + std::cerr << "caught 7zip exception: " << e.message() << std::endl; } catch (const QInstaller::Error &e) { - std::cerr << e.message() << std::endl; + std::cerr << "caught exception: " << e.message() << std::endl; } return EXIT_FAILURE; } -- cgit v1.2.3