summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller
diff options
context:
space:
mode:
Diffstat (limited to 'installerbuilder/libinstaller')
-rw-r--r--installerbuilder/libinstaller/component.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/component.cpp b/installerbuilder/libinstaller/component.cpp
index 57a9c105f..0ab9987f7 100644
--- a/installerbuilder/libinstaller/component.cpp
+++ b/installerbuilder/libinstaller/component.cpp
@@ -379,6 +379,12 @@ void Component::loadComponentScript(const QString &fileName)
d->m_scriptComponent.construct();
}
+ //evaluate("Component") and construct can have an exception
+ if (d->m_scriptEngine.hasUncaughtException()) {
+ throw Error(tr("Exception while loading the component script %1")
+ .arg(uncaughtExceptionString(&(d->m_scriptEngine)/*, QFileInfo(file).absoluteFilePath()*/)));
+ }
+
emit loaded();
languageChanged();