uclahs-cds / pipeline-Nextflow-config

Set of commonly used Nextflow configs
GNU General Public License v2.0
1 stars 0 forks source link

FileNotFoundException Not Very Explicit #62

Open zhuchcn opened 5 months ago

zhuchcn commented 5 months ago

https://github.com/uclahs-cds/pipeline-Nextflow-config/blob/f3448ac26989391df434a3d9c59a9227b136431d/config/schema/schema.config#L63

I found this error can be unclear sometimes. In my case, one of the files was given as an empty string. So All it prints out is:

ERROR ~ Unable to parse config file: 'metapipeline-DNA/module/recalibrate_BAM/./default.config'

   does not exist.

I had other cases that I had to spend a lot of time figuring out where the error came from. Maybe we can also print out what variable the path is missing.

yashpatel6 commented 5 months ago

Agreed, it should be better, it'd need a slight update to the error handling to make sure the error message has the necessary information without having to pass it all to all of the functions