don't say a supported version is unsupported
When an automatic upgrade from eg v10 fails, it's still a supported version, so don't say unsupported.
This commit is contained in:
parent
7ac22dc834
commit
08c27c5ea0
1 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,11 @@ needsUpgrade v
|
||||||
p <- liftIO $ absPath $ Git.repoPath g
|
p <- liftIO $ absPath $ Git.repoPath g
|
||||||
return $ Just $ unwords
|
return $ Just $ unwords
|
||||||
[ "Repository", fromRawFilePath p
|
[ "Repository", fromRawFilePath p
|
||||||
, "is at unsupported version"
|
, "is at"
|
||||||
|
, if v `elem` supportedVersions
|
||||||
|
then "supported"
|
||||||
|
else "unsupported"
|
||||||
|
, "version"
|
||||||
, show (fromRepoVersion v) ++ "."
|
, show (fromRepoVersion v) ++ "."
|
||||||
, msg
|
, msg
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue