mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-22 08:29:54 +00:00
Merge pull request #156 from piotr-faba-ardigen/add_bi_config
Add bi config
This commit is contained in:
commit
32ec230098
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ 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)
|
||||||
{
|
{
|
||||||
throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file")
|
def errorMessage = "ERROR: Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file."
|
||||||
|
System.err.println(errorMessage)
|
||||||
|
throw new Exception(errorMessage)
|
||||||
}
|
}
|
||||||
return System.getenv('NXF_GLOBAL_CONFIG')
|
return System.getenv('NXF_GLOBAL_CONFIG')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue