Skip to content

Commit

Permalink
improve an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Jan 8, 2025
1 parent 1835c5e commit e6d3b55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, [])
}

Expand Down

0 comments on commit e6d3b55

Please sign in to comment.