From e6d3b55aed0f2b16764dd3a09753a940f7ebc943 Mon Sep 17 00:00:00 2001 From: Nicolas Vannieuwkerke Date: Wed, 8 Jan 2025 10:08:06 +0100 Subject: [PATCH] improve an error message --- plugins/nf-schema/src/main/nextflow/validation/Utils.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nf-schema/src/main/nextflow/validation/Utils.groovy b/plugins/nf-schema/src/main/nextflow/validation/Utils.groovy index 8d1fbdb2..57563645 100644 --- a/plugins/nf-schema/src/main/nextflow/validation/Utils.groovy +++ b/plugins/nf-schema/src/main/nextflow/validation/Utils.groovy @@ -59,7 +59,7 @@ public class Utils { def Map types = variableTypes(schema) if (schemaMap.type == "object" && fileType in ["csv", "tsv"]) { - def msg = "Cannot create an object from a CSV or TSV samplesheet. Please use a JSON or YAML file instead." + def msg = "CSV or TSV files are not supported. Use a JSON or YAML file instead of ${file.toString()}. (Expected a non-list data structure, which is not supported in CSV or TSV)" throw new SchemaValidationException(msg, []) }