SERVER-90049 Reword IDL compatibility check message for clarity (#42117)

GitOrigin-RevId: 2fa7d62370567678e6d93bdcff09509051d5d5bc
This commit is contained in:
karlbozdogan 2025-10-02 14:59:31 +02:00 committed by MongoDB Bot
parent ab2d4ebd25
commit deff7f6bf8
1 changed files with 6 additions and 3 deletions

View File

@ -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("------------------------------------------------")