Skip to content

Commit

Permalink
Merge pull request #2511 from mashehu/handle-custom-schema-error-mess…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
mashehu authored Nov 10, 2023
2 parents 4ed0587 + e999191 commit 6217be4
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 6217be4

Please sign in to comment.