Commit 64f156ca authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: catch errors coming from an incorrect .germlines file

parent 83038c6d
......@@ -874,7 +874,14 @@ int main (int argc, char **argv)
if (multi_germline)
{
for (pair <string, string> path_file: multi_germline_paths_and_files)
multigermline->build_from_json(path_file.first, path_file.second, GERMLINES_REGULAR, trim_sequences);
{
try {
multigermline->build_from_json(path_file.first, path_file.second, GERMLINES_REGULAR, trim_sequences);
} catch (std::exception& e) {
cerr << ERROR_STRING << "Vidjil cannot properly read " << path_file.first << "/" << path_file.second << ": " << e.what() << endl;
exit(1);
}
}
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment