Skip to content

Commit

Permalink
Add level info on ReST validation error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
redapple committed Dec 19, 2016
1 parent 27daa2d commit 621a8f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .tests/render_rest.py
Expand Up @@ -65,8 +65,8 @@ def check_render_rest(data_root, verbose=False):
valid = False

if error:
msg = 'ReST validation error:\n\tFile: {}\n\tKey: {}'
print(msg.format(file_path, field), flush=True)
msg = 'ReST validation error (level {level}):\n\tFile: {fp}\n\tKey: {key}'
print(msg.format(fp=file_path, key=field, level=level), flush=True)
if verbose:
print('\t', error, sep='', flush=True)

Expand Down

0 comments on commit 621a8f2

Please sign in to comment.