Mercurial > hg > svcore
diff transform/FeatureExtractionModelTransformer.cpp @ 1373:7a38b2cbb6c1
Catch exception from initialise
author | Chris Cannam |
---|---|
date | Mon, 06 Feb 2017 09:18:44 +0000 |
parents | 54366398e636 |
children | 8db84bd61eaa |
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; }