Skip to content
Snippets Groups Projects
Commit c10d8100 authored by Rafal Gumienny's avatar Rafal Gumienny
Browse files

fix: SCHWED-3127 A better message if the selection fails

parent be3a76f5
Branches
Tags
No related merge requests found
...@@ -278,7 +278,12 @@ int main (int argc, char **argv) ...@@ -278,7 +278,12 @@ int main (int argc, char **argv)
} }
if (settings.sel != ""){ if (settings.sel != ""){
std::cout << "Performing \"" << settings.sel << "\" selection on reference " << ref_filename << std::endl; std::cout << "Performing \"" << settings.sel << "\" selection on reference " << ref_filename << std::endl;
ref_list.push_back(ref.Select(settings.sel)); try {
ref_list.push_back(ref.Select(settings.sel));
} catch (const ost::mol::QueryError& e) {
std::cerr << "Provided selection argument failed." << std::endl << e.GetFormattedMessage() << std::endl;
exit(-1);
}
} }
else { else {
ref_list.push_back(ref.CreateFullView()); ref_list.push_back(ref.CreateFullView());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment