on iko/ghcjs-patch-master help sign in
Improve index-state error message (#667)
d3bfa57Michael Peyton Jones
lib/call-cabal-project-to-nix.nix+1−1
@@ -131,7 +131,7 @@ in
131 assert (if index-state-found == null
131 assert (if index-state-found == null
132 then throw "No index state passed and none found in ${cabalProjectFileName}" else true);
132 then throw "No index state passed and none found in ${cabalProjectFileName}" else true);
133 assert (if index-sha256-found == null
133 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);
135
135
136let
136let
137 span = pred: list:
137 span = pred: list: