From 26d1e681a06fcb5a8575cdf9956537b583ba5062 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 19 Mar 2017 08:26:02 -0700 Subject: improve error msg from Apt.getHostMirror --- src/Propellor/Property/Apt.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Propellor/Property/Apt.hs') 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) -- cgit v1.2.3