[lld] r287900 - Include a hint how to see all errors if error is truncated.
    Rui Ueyama via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov 24 12:31:43 PST 2016
    
    
  
Author: ruiu
Date: Thu Nov 24 14:31:43 2016
New Revision: 287900
URL: http://llvm.org/viewvc/llvm-project?rev=287900&view=rev
Log:
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!
Modified:
    lld/trunk/ELF/Error.cpp
    lld/trunk/test/ELF/error-limit.test
Modified: lld/trunk/ELF/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.cpp?rev=287900&r1=287899&r2=287900&view=diff
==============================================================================
--- lld/trunk/ELF/Error.cpp (original)
+++ lld/trunk/ELF/Error.cpp Thu Nov 24 14:31:43 2016
@@ -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);
   }
Modified: lld/trunk/test/ELF/error-limit.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/error-limit.test?rev=287900&r1=287899&r2=287900&view=diff
==============================================================================
--- lld/trunk/test/ELF/error-limit.test (original)
+++ lld/trunk/test/ELF/error-limit.test Thu Nov 24 14:31:43 2016
@@ -3,7 +3,7 @@ RUN:   21 22 2>&1 | FileCheck -check-pre
 
 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
 
 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)
    
    
More information about the llvm-commits
mailing list