summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Locale.hs
diff options
context:
space:
mode:
authorJoey Hess2017-08-23 11:48:23 -0400
committerJoey Hess2017-08-23 11:48:23 -0400
commit78cb340ea96a20c9045079fe11147d544c28b58b (patch)
tree7551e87fc8dd87c883c61c136c056e19442357af /src/Propellor/Property/Locale.hs
parent45371cdfcc5d740f4814947614e112c201259987 (diff)
parent5ec42dd1b78c5d60d53c00d6494511c4b2adb943 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Locale.hs')
-rw-r--r--src/Propellor/Property/Locale.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Locale.hs b/src/Propellor/Property/Locale.hs
index 14c6f0b0..53091fc9 100644
--- a/src/Propellor/Property/Locale.hs
+++ b/src/Propellor/Property/Locale.hs
@@ -63,7 +63,7 @@ available locale = ensureAvailable `requires` Apt.installed ["locales"]
then ensureProperty w $
fileProperty desc (foldr uncomment []) f
`onChange` regenerate
- else return FailedChange -- locale unavailable for generation
+ else error $ "locale " ++ locale ++ " is not present in /etc/locale.gen, even in commented out form; cannot generate"
ensureUnavailable :: Property DebianLike
ensureUnavailable = tightenTargets $
fileProperty (locale ++ " locale not generated") (foldr comment []) f