Limit number of compiler error messages

Robert Clipsham robert at octarineparrot.com
Tue May 22 02:50:41 PDT 2012


On 19/05/2012 23:38, cal wrote:
> Is there a way to limit the dmd compiler to outputting just the first
> few errors it comes across?

As Don said, if there are any useless error messages it is a bug, and 
needs to be reported at:

http://d.puremagic.com/issues/

This said, if you're on a non-Windows platform, you can use the following:

<my build command> 2>&1 | head -n <number of lines you want to see>

Where <my build command> is your dmd/rdmd/build script command. There's 
probably something similar you could use on Windows, I don't really know 
though.

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d-learn mailing list