File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SingleBundle SingleBundle::fromNameAndSearchPaths(
102102 }
103103
104104 std::stringstream ss;
105- ss << " Could not determine path of bundle " << name << " . Looked " <<
105+ ss << " Could not determine path of bundle ' " << name << " ' . Looked " <<
106106 " into the following search paths: " << searchPathsString;
107107 throw (std::runtime_error (ss.str ()));
108108 }
@@ -363,8 +363,13 @@ bool Bundle::initialize(bool loadTaskConfigs)
363363 }else
364364 {
365365 // ROCK_BUNDLE contains bundle name
366- bundle = SingleBundle::fromNameAndSearchPaths (activeBundle,
367- bundleSearchPaths ());
366+ try {
367+ bundle = SingleBundle::fromNameAndSearchPaths (activeBundle,
368+ bundleSearchPaths ());
369+ }catch (std::runtime_error& err){
370+ LOG_ERROR_S << err.what ();
371+ return false ;
372+ }
368373 }
369374 LOG_INFO_S << " Currently selected bundle: " <<bundle.name << " at " <<
370375 bundle.path ;
You can’t perform that action at this time.
0 commit comments