Skip to content

Commit

Permalink
handle custom error messages from schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Nov 10, 2023
1 parent 3fddb70 commit e999191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nf_core/modules/lint/meta_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def meta_yml(module_lint_object, module):
hint = f"\nCheck the entry for `{e.path[0]}`."
if e.message.startswith("None is not of type 'object'") and len(e.path) > 2:
hint = f"\nCheck that the child entries of {e.path[0]+'.'+e.path[2]} are indented correctly."
if e.schema.get("message"):
e.message = e.schema["message"]
module.failed.append(
(
"meta_yml_valid",
Expand Down

0 comments on commit e999191

Please sign in to comment.