Skip to content

Commit 7eedb02

Browse files
authored
update api check error message (#1032)
1 parent 7cbe58b commit 7eedb02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/check_api_changes.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,10 @@ validationResults.forEach((result) => {
8484
});
8585

8686
if (errors.length > 0) {
87-
throw new AggregateError(errors, 'There are validation failures');
87+
throw new AggregateError(
88+
errors,
89+
`Breaking API changes detected. See below for details.
90+
If these changes are intentional, this is okay.
91+
Otherwise, update the PR to remove the unintentional breaks`
92+
);
8893
}

0 commit comments

Comments
 (0)