From f134daad8735b7f9ec149b073aa1bd10168cc7c0 Mon Sep 17 00:00:00 2001 From: Iacovos Constantinou Date: Mon, 4 Nov 2024 21:34:12 +0200 Subject: [PATCH] Add example fo the error message --- designs/2024-baseline-support/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designs/2024-baseline-support/README.md b/designs/2024-baseline-support/README.md index dbc9b524..82ae93b5 100644 --- a/designs/2024-baseline-support/README.md +++ b/designs/2024-baseline-support/README.md @@ -231,7 +231,8 @@ if (options.suppressAll || options.suppressRule || options.pruneSuppressions || const suppressionResults = suppressionsManager.applySuppressions(results, suppressionsManager.load()); if (suppressionResults.unmatched.length > 0) { - // exit with a non-zero code + log.error("There are left suppressions that do not occur anymore. Consider re-running the command with `--prune-suppressions`."); + return 2; } results = suppressionResults.results;