diff options
| author | Sean Whitton <spwhitton@spwhitton.name> | 2017-03-19 08:26:02 -0700 |
|---|---|---|
| committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-03-19 08:26:02 -0700 |
| commit | 26d1e681a06fcb5a8575cdf9956537b583ba5062 (patch) | |
| tree | 1d10d2d05d08707ee04ae67dc5c384c2155a76f4 /src | |
| parent | 92497f99f01411e618df92dd1a6f82ce63d3854d (diff) | |
improve error msg from Apt.getHostMirror
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Apt.hs | 2 |
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) |
