summaryrefslogtreecommitdiffstats
path: root/src/sdk/sdkapp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdk/sdkapp.h')
-rw-r--r--src/sdk/sdkapp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sdk/sdkapp.h b/src/sdk/sdkapp.h
index 5e5e526b4..dc4641f24 100644
--- a/src/sdk/sdkapp.h
+++ b/src/sdk/sdkapp.h
@@ -45,6 +45,7 @@
#include <utils.h>
#include <runoncechecker.h>
#include <globals.h>
+#include <errors.h>
#include <QApplication>
#include <QDir>
@@ -293,7 +294,12 @@ public:
m_core->acceptMessageBoxDefaultButton();
}
- ProductKeyCheck::instance()->init(m_core);
+ try {
+ ProductKeyCheck::instance()->init(m_core);
+ } catch (const QInstaller::Error &e) {
+ errorMessage = e.message();
+ return false;
+ }
ProductKeyCheck::instance()->addPackagesFromXml(QLatin1String(":/metadata/Updates.xml"));
return true;