-
Notifications
You must be signed in to change notification settings - Fork 736
Closed
Description
Bug report
When using exit <exit code>, <message>
, the message is not printed to the screen when it is between process input brackets.
Expected behavior and actual behavior
The expected behaviour is that exit messages are always printed to screen ( and log ).
The actual behaviour is that this happens only when the exit is outside of a process input brackets.
Steps to reproduce the problem
Prints exit message to screen (outside.nf
):
workflow {
log.info("Starting workflow")
Channel.empty()
.ifEmpty { exit 1, "ERROR: error message\n" }
}
Does not print exit message to screen (inside.nf
):
workflow {
log.info("Starting workflow")
FOO(
Channel.empty()
.ifEmpty { exit 1, "ERROR: error message\n" }
)
}
process FOO {
input:
val message
exec:
println message
}
Program output
outside.nf
:
% nextflow run outside.nf
N E X T F L O W ~ version 22.04.4
Launching `outside.nf` [backstabbing_varahamihira] DSL2 - revision: 798478e9c7
Starting workflow
ERROR: error message
inside.nf
:
% nextflow run inside.nf
N E X T F L O W ~ version 22.04.4
Launching `inside.nf` [nostalgic_minsky] DSL2 - revision: 020266ff03
Starting workflow
Environment
- Nextflow version: 22.04.4
- Java version: openjdk 11.0.9.1 2020-11-04 LTS
- Operating system: macOS
- Bash version: zsh 5.8 (x86_64-apple-darwin21.0)
Additional context
(Add any other context about the problem here)