Skip to content

Commit

Permalink
Add note when errors are omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel authored and dlang-bot committed Jul 12, 2024
1 parent dec236d commit 458d766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/src/dmd/errors.d
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,10 @@ extern (C++) void verrorReport(const ref Loc loc, const(char)* format, va_list a
info.headerColor = Classification.error;
verrorPrint(format, ap, info);
if (global.params.v.errorLimit && global.errors >= global.params.v.errorLimit)
{
fprintf(stderr, "error limit (%d) reached, use `-verrors=0` to show all\n", global.params.v.errorLimit);
fatal(); // moderate blizzard of cascading messages
}
}
else
{
Expand Down
1 change: 1 addition & 0 deletions compiler/test/fail_compilation/verrors5.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ fail_compilation/verrors5.d(6): Error: undefined identifier `T`
fail_compilation/verrors5.d(7): Error: undefined identifier `T`
fail_compilation/verrors5.d(8): Error: undefined identifier `T`
fail_compilation/verrors5.d(9): Error: undefined identifier `T`
error limit (5) reached, use `-verrors=0` to show all
---
*/

0 comments on commit 458d766

Please sign in to comment.