1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-22 08:29:54 +00:00

test error display

This commit is contained in:
Piotr Faba 2020-05-27 18:00:47 +02:00
parent 18d8edb046
commit 3c695ba71c

View file

@ -10,6 +10,7 @@ includeConfig params.globalConfig
def determine_global_config() { def determine_global_config() {
if( System.getenv('NXF_GLOBAL_CONFIG') == null) if( System.getenv('NXF_GLOBAL_CONFIG') == null)
{ {
System.err.println("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file")
throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file") throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file")
} }
return System.getenv('NXF_GLOBAL_CONFIG') return System.getenv('NXF_GLOBAL_CONFIG')