Skip to content
  • Daniel Gröber (dxld)'s avatar
    Catch preprocessor errors in downsweep · 99e72769
    Daniel Gröber (dxld) authored and Marge Bot's avatar Marge Bot committed
    This changes the way preprocessor failures are presented to the
    user. Previously the user would simply get an unlocated message on stderr
    such as:
    
        `gcc' failed in phase `C pre-processor'. (Exit code: 1)
    
    Now at the problematic source file is mentioned:
    
        A.hs:1:1: error:
            `gcc' failed in phase `C pre-processor'. (Exit code: 1)
    
    This also makes live easier for GHC API clients as the preprocessor error
    is now thrown as a SourceError exception.
    99e72769