Skip to content

Commit 7ea4dfd

Browse files
committed
Reword index-state mismatch warning
1 parent 10de4e5 commit 7ea4dfd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cabal-install/src/Distribution/Client/IndexUtils.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,15 @@ getSourcePackagesAtIndexState verbosity repoCtxt mb_idxState mb_activeRepos = do
277277
when (isiMaxTime isi /= ts0) $
278278
if ts0 > isiMaxTime isi
279279
then warn verbosity $
280-
"Requested index-state " ++ prettyShow ts0
281-
++ " is newer than '" ++ unRepoName rname ++ "'!"
282-
++ " Falling back to older state ("
283-
++ prettyShow (isiMaxTime isi) ++ ")."
280+
"There is no index-state for '"
281+
++ unRepoName rname ++ "' exactly at the requested timestamp ("
282+
++ prettyShow ts0 ++ "). Falling back to the previous index-state that exists: "
283+
++ prettyShow (isiMaxTime isi) ++ ". Suggestion: use this other timestamp instead of the one you provided, the build plan will be the same."
284284
else info verbosity $
285-
"Requested index-state " ++ prettyShow ts0
286-
++ " does not exist in '"++ unRepoName rname ++"'!"
287-
++ " Falling back to older state ("
288-
++ prettyShow (isiMaxTime isi) ++ ")."
285+
"There is no index-state for '"
286+
++ unRepoName rname ++ "' exactly at the requested timestamp ("
287+
++ prettyShow ts0 ++ "). Falling back to the previous index-state that exists: "
288+
++ prettyShow (isiMaxTime isi) ++ ". Suggestion: use this other timestamp instead of the one you provided, the build plan will be the same."
289289
info verbosity ("index-state("++ unRepoName rname ++") = " ++
290290
prettyShow (isiMaxTime isi) ++ " (HEAD = " ++
291291
prettyShow (isiHeadTime isi) ++ ")")

0 commit comments

Comments
 (0)