summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess2016-06-13 18:58:28 -0400
committerJoey Hess2016-06-13 18:58:28 -0400
commitc0cbce318afb0bc2364541f409a0943856ad1356 (patch)
tree41e9c0621552e55033d825595cb1950d8ae06d9c
parent490249b919aaf82527b81c88c88350fd478dbed9 (diff)
sequencing errorMessage is pointless
It throws an error, so only the first error would be shown. Instead, display them all.
-rw-r--r--src/Propellor/Property/Ccache.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Propellor/Property/Ccache.hs b/src/Propellor/Property/Ccache.hs
index f2246fe1..34ed6761 100644
--- a/src/Propellor/Property/Ccache.hs
+++ b/src/Propellor/Property/Ccache.hs
@@ -66,8 +66,7 @@ path `hasLimits` limit = go `requires` installed
cmdPropertyEnv "ccache" params' [("CCACHE_DIR", path)]
`changesFileContent` (path </> "ccache.conf")
| otherwise = property "couldn't parse ccache limits" $
- sequence_ (errorMessage <$> errors)
- >> return FailedChange
+ errorMessage $ unlines errors
params = limitToParams limit
(errors, params') = partitionEithers params