summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp4
1 files changed, 2 insertions, 2 deletions
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<InstallationManager, void, LPCWSTR>(this, &InstallationManager::dummyProgressFile),
new MethodCallback<InstallationManager, void, LPCWSTR>(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<QString> &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()));
}
}