diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-24 20:31:43 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-24 20:31:43 +0000 |
| commit | d4c94d18993ad65b1ced34c0f3853dcd5a147a13 (patch) | |
| tree | 69ddf0a1aff34d6f4ddf27cecaa030b147490863 | |
| parent | a3ac17372bac348e8597498f641121b0fe706bd1 (diff) | |
| download | bcm5719-llvm-d4c94d18993ad65b1ced34c0f3853dcd5a147a13.tar.gz bcm5719-llvm-d4c94d18993ad65b1ced34c0f3853dcd5a147a13.zip | |
Include a hint how to see all errors if error is truncated.
This patch changes the error message from
too many errors emitted, stopping now
to
too many errors emitted, stopping now (use -error-limit=0 to see all errors)
Thanks for Sean for the suggestion!
llvm-svn: 287900
| -rw-r--r-- | lld/ELF/Error.cpp | 3 | ||||
| -rw-r--r-- | lld/test/ELF/error-limit.test | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lld/ELF/Error.cpp b/lld/ELF/Error.cpp index 39246e6426c..a230bf6dadd 100644 --- a/lld/ELF/Error.cpp +++ b/lld/ELF/Error.cpp @@ -53,7 +53,8 @@ void elf::error(const Twine &Msg) { if (Config->ErrorLimit == 0 || ErrorCount < Config->ErrorLimit) { *ErrorOS << Argv0 << ": error: " << Msg << "\n"; } else if (ErrorCount == Config->ErrorLimit) { - *ErrorOS << Argv0 << ": error: too many errors emitted, stopping now\n"; + *ErrorOS << Argv0 << ": error: too many errors emitted, stopping now" + << " (use -error-limit=0 to see all errors)\n"; if (Config->ExitEarly) exitLld(1); } diff --git a/lld/test/ELF/error-limit.test b/lld/test/ELF/error-limit.test index 15a992bcde1..a82f2f2bfd7 100644 --- a/lld/test/ELF/error-limit.test +++ b/lld/test/ELF/error-limit.test @@ -3,7 +3,7 @@ RUN: 21 22 2>&1 | FileCheck -check-prefix=DEFAULT %s DEFAULT: cannot open 01 DEFAULT: cannot open 20 -DEFAULT-NEXT: too many errors emitted, stopping now +DEFAULT-NEXT: too many errors emitted, stopping now (use -error-limit=0 to see all errors) DEFAULT-NOT: cannot open 21 RUN: not ld.lld -error-limit=5 01 02 03 04 05 06 07 08 09 10 2>&1 \ @@ -13,7 +13,7 @@ RUN: | FileCheck -check-prefix=LIMIT5 %s LIMIT5: cannot open 01 LIMIT5: cannot open 05 -LIMIT5-NEXT: too many errors emitted, stopping now +LIMIT5-NEXT: too many errors emitted, stopping now (use -error-limit=0 to see all errors) LIMIT5-NOT: cannot open 06 RUN: not ld.lld -error-limit=0 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 \ @@ -23,4 +23,4 @@ UNLIMITED: cannot open 01 UNLIMITED: cannot open 20 UNLIMITED: cannot open 21 UNLIMITED: cannot open 22 -UNLIMITED-NOT: too many errors emitted, stopping now +UNLIMITED-NOT: too many errors emitted, stopping now (use -error-limit=0 to see all errors) |

