send reported messages before failing
Merge branch 'master' into ghc-7.10