summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Whitton2017-03-19 08:26:02 -0700
committerSean Whitton2017-03-19 08:26:02 -0700
commit26d1e681a06fcb5a8575cdf9956537b583ba5062 (patch)
tree1d10d2d05d08707ee04ae67dc5c384c2155a76f4 /src
parent92497f99f01411e618df92dd1a6f82ce63d3854d (diff)
improve error msg from Apt.getHostMirror
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Property/Apt.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs
index b86a6838..abec1357 100644
--- a/src/Propellor/Property/Apt.hs
+++ b/src/Propellor/Property/Apt.hs
@@ -30,6 +30,8 @@ getHostMirror = do
"http://deb.debian.org/debian"
(Just (System (Buntish _) _), _) ->
"mirror://mirrors.ubuntu.com/"
+ (Just (System dist _), _) ->
+ error ("no Apt mirror defined for " ++ show dist)
_ -> error "no Apt mirror defined for this host or OS"
where
getHostMirrorInfo :: Propellor (Maybe HostMirror)