Commit 3978e689 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'feature-a/4775-fix-segfault-inexistent-germline' into 'dev'

core/germline.cpp: properly fail when no germlines have been loaded

Closes #4775

See merge request !959
parents 443c4191 7538d545
Pipeline #245681 failed with stages
in 13 minutes and 18 seconds
......@@ -432,6 +432,12 @@ void MultiGermline::finish() {
for (auto germline: germlines) {
germline->finish();
}
if (germlines.empty())
{
cerr << ERROR_STRING << "No matching germlines" << endl;
exit(2);
}
}
/* Mark k-mers common to several germlines as ambiguous */
......
......@@ -9,6 +9,11 @@ $ Refer to documentation
1:see doc/vidjil-algo.md
!NO_LAUNCHER:
!EXIT_CODE: 2
!LAUNCH: $VIDJIL_DIR/$EXEC -g $VIDJIL_DIR/germline/homo-sapiens.g:FOO $VIDJIL_DATA/Stanford_S22.fasta 2>&1
$ Error, no matching germline
1:error.* No matching germline
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