Bug 1826209 - Display message when nonfatal warnings are present r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D174542
This commit is contained in:
Steve Fink 2023-04-07 18:29:51 +00:00
parent 23690c9281
commit 89a6285ec3

View File

@ -146,4 +146,11 @@ class StylishFormatter(object):
)
)
if result.total_suppressed_warnings > 0 and num_errors == 0:
message.append(
"(pass {c1}-W/--warnings{c2} to see warnings.)".format(
c1=self.color("grey"), c2=self.term.normal
)
)
return "\n".join(message)