Skip to content

Commit 70def9a

Browse files
authored
Merge pull request nf-core#2875 from nf-core/task/2791-comparison-of-default-values
Add type of values to the error description for schema errors
2 parents 07bb482 + 9e756c0 commit 70def9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nf_core/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ def add_schema_found_configs(self):
800800
p_def := self.build_schema_param(p_val).get("default")
801801
):
802802
if self.no_prompts or Confirm.ask(
803-
f":sparkles: Default for [bold]'params.{p_key}'[/] in the pipeline config does not match schema. (schema: '{s_def}' | config: '{p_def}'). "
803+
f":sparkles: Default for [bold]'params.{p_key}'[/] in the pipeline config does not match schema. (schema: '{type(s_def)}: {s_def}' | config: '{type(p_def)}: {p_def}'). "
804804
"[blue]Update pipeline schema?"
805805
):
806806
s_key_def = s_key + ("default",)

0 commit comments

Comments
 (0)