mirror of https://github.com/mongodb/mongo
SERVER-90049 Reword IDL compatibility check message for clarity (#42117)
GitOrigin-RevId: 2fa7d62370567678e6d93bdcff09509051d5d5bc
This commit is contained in:
parent
ab2d4ebd25
commit
deff7f6bf8
|
|
@ -247,7 +247,10 @@ class IDLCompatibilityErrorCollection(object):
|
|||
def dump_errors(self) -> None:
|
||||
"""Print the list of errors."""
|
||||
error_list = self.to_list()
|
||||
print("Errors found while checking IDL compatibility: %s errors:" % (len(error_list)))
|
||||
if len(error_list) == 0:
|
||||
print("IDL compatibility check passed.")
|
||||
else:
|
||||
print("IDL compatibility check failed with %s errors:" % (len(error_list)))
|
||||
for error_msg in error_list:
|
||||
print("%s\n\n" % error_msg)
|
||||
print("------------------------------------------------")
|
||||
|
|
|
|||
Loading…
Reference in New Issue