Skip to content

Commit

Permalink
format_error: Drop inadvertent newline added to conditional error mes…
Browse files Browse the repository at this point in the history
…sages

A newline was inadvertently added to the start of the output of
conditional error messages.

Signed-off-by: Rob Herring (Arm) <[email protected]>
  • Loading branch information
robherring committed May 9, 2024
1 parent ed9190d commit 8733c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtschema/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def format_error(filename, error, prefix="", nodename=None, verbose=False):
msg = best_match(error.context).message
else:
# An error on a conditional will have context with sub-errors
msg = "\n'" + error.schema_path[-1] + "' conditional failed, one must be fixed:"
msg = "'" + error.schema_path[-1] + "' conditional failed, one must be fixed:"

for suberror in sorted(error.context, key=lambda e: e.path):
if suberror.context:
Expand Down

0 comments on commit 8733c90

Please sign in to comment.