patch applied (cabal-install): Move printing of build failures into a separate function