Skip to content

Commit

Permalink
Improve error message on empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Sep 26, 2024
1 parent 2dfdb09 commit 0b3529c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/local/fail_on_empty/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ process FAIL_ON_EMPTY {

exec:
if (!bed) {
log.error ((params.min_tools <= 1 ?
"No circular RNAs were found by any tool in any sample.\n" :
"No circular RNAs were found by at least ${params.min_tools} tools in any sample.\n") +
log.error ((
"No circular RNAs were found by at least ${params.min_tools} tools and in at least ${params.min_samples} samples.\n") +
"Feel free to check the preliminary results in '${params.outdir}'\n" +
(params.save_intermediates ? "" :
"You can enable saving intermediate files by setting the parameter 'save_intermediates' to 'true'."))
Expand Down

0 comments on commit 0b3529c

Please sign in to comment.