Fix plain format output functionality (#63107)

This commit is contained in:
Matt Martz 2019-10-10 14:46:36 -05:00 committed by Brian Coca
parent 6d52bdf4db
commit 03b98f6351

View file

@ -171,12 +171,12 @@ class Reporter:
print('\n '.join((' %s' % trace).splitlines()))
for error in report['errors']:
error['path'] = path
print('%(path)s:%(line)d:%(column)d: E%(code)d %(msg)s' % error)
print('%(path)s:%(line)d:%(column)d: E%(code)s %(msg)s' % error)
ret.append(1)
if warnings:
for warning in report['warnings']:
warning['path'] = path
print('%(path)s:%(line)d:%(column)d: W%(code)d %(msg)s' % warning)
print('%(path)s:%(line)d:%(column)d: W%(code)s %(msg)s' % warning)
return 3 if ret else 0