changeset 1373:7a38b2cbb6c1

Catch exception from initialise
author Chris Cannam
date Mon, 06 Feb 2017 09:18:44 +0000
parents 54366398e636
children 8db84bd61eaa
files transform/FeatureExtractionModelTransformer.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp	Tue Jan 31 11:13:20 2017 +0000
+++ b/transform/FeatureExtractionModelTransformer.cpp	Mon Feb 06 09:18:44 2017 +0000
@@ -634,8 +634,14 @@
 void
 FeatureExtractionModelTransformer::run()
 {
-    if (!initialise()) {
+    try {
+        if (!initialise()) {
+            abandon();
+            return;
+        }
+    } catch (const std::exception &e) {
         abandon();
+        m_message = e.what();
         return;
     }