on iko/ghcjs-patch-master help sign in
Improve index-state error message (#667)

Fixes #533.

commitd3bfa5789f420b5587586aadeac871120f198008 authorMichael Peyton Jones <michael.peyton-jones@iohk.io> dateWed 10 Jun 2020, 11:30 (6 years ago) parente2a3995
1 file changed+1−1
lib/call-cabal-project-to-nix.nix+1−1
lib/call-cabal-project-to-nix.nix+1−1
@@ -131,7 +131,7 @@ in
131131 assert (if index-state-found == null
132132 then throw "No index state passed and none found in ${cabalProjectFileName}" else true);
133133 assert (if index-sha256-found == null
134− then throw "provided sha256 for index-state ${index-state-found} is null!" else true);
134+ then throw "Unknown index-state ${index-state-found}, the latest index-state I know about is ${pkgs.lib.last (builtins.attrNames index-state-hashes)}. You may need to update to a newer hackage.nix." else true);
135135
136136let
137137 span = pred: list: