From 53d1f3e00e8f2cfc8f2d715b4bbbf0309dcb8947 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 6 Nov 2014 00:03:44 +0100 Subject: - workaround for GetModuleFileName-calls that supply wrong buffer size - removed obsoleted calls to GetVersionEx - bugfix: download urls were potentially not encoded correctly - bugfixes to tls-based recursion protection --- src/installationmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 29914b65..d6435e57 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -257,7 +257,7 @@ QStringList InstallationManager::extractFiles(const QStringList &filesOrig, bool new MethodCallback(this, &InstallationManager::dummyProgressFile), new MethodCallback(this, &InstallationManager::report7ZipError))) { m_InstallationProgress.hide(); - throw std::runtime_error("extracting failed"); + throw MyException(QString("extracting failed (%1)").arg(m_CurrentArchive->getLastError())); } m_InstallationProgress.hide(); @@ -542,7 +542,7 @@ bool InstallationManager::doInstall(GuessedValue &modName, int modID, if (m_CurrentArchive->getLastError() == Archive::ERROR_EXTRACT_CANCELLED) { return false; } else { - throw std::runtime_error("extracting failed"); + throw MyException(QString("extracting failed (%1)").arg(m_CurrentArchive->getLastError())); } } -- cgit v1.3.1