Skip to content
  • Alp Mestanogullari's avatar
    hadrian: always capture both stdout and stderr when running a builder fails · c62271a2
    Alp Mestanogullari authored and Marge Bot's avatar Marge Bot committed
    The idea being that when a builder('s command) fails, we quite likely want to
    have all the information available to figure out why. Depending on the builder
    _and_ the particular problem, the useful bits of information can be printed
    on stdout or stderr.
    
    We accomplish this by defining a simple wrapper for Shake's `cmd` function,
    that just _always_ captures both streams in case the command returns a non-zero
    exit code, and by using this wrapper everywhere in `hadrian/src/Builder.hs`.
    
    Fixes #18089.
    c62271a2