improve message about 1 copy
"Could only verify the existence of 0 out of 1 necessary copy" does not sound right, but neither does it with "copies". Kept the "1" rather than "only" or such since numcopies is mentioned. Sponsored-by: Brock Spratlen on Patreon
This commit is contained in:
parent
edf31a2ebc
commit
fd0b510573
1 changed files with 5 additions and 3 deletions
|
@ -282,9 +282,11 @@ notEnoughCopies key neednum needmin have skip bad nolocmsg lockunsupported = do
|
|||
showNote "unsafe"
|
||||
if length have < fromNumCopies neednum
|
||||
then showLongNote $ UnquotedString $
|
||||
"Could only verify the existence of " ++
|
||||
show (length have) ++ " out of " ++ show (fromNumCopies neednum) ++
|
||||
" necessary " ++ pluralCopies (fromNumCopies neednum)
|
||||
if fromNumCopies neednum == 1
|
||||
then "Could not verify the existence of the 1 necessary copy."
|
||||
else "Could only verify the existence of " ++
|
||||
show (length have) ++ " out of " ++ show (fromNumCopies neednum) ++
|
||||
" necessary " ++ pluralCopies (fromNumCopies neednum) ++ "."
|
||||
else do
|
||||
showLongNote $ UnquotedString $ "Unable to lock down " ++ show (fromMinCopies needmin) ++
|
||||
" " ++ pluralCopies (fromMinCopies needmin) ++
|
||||
|
|
Loading…
Reference in a new issue