flutter: Throw a useful message when there are missing artifact hashes

This commit is contained in:
hacker1024 2023-04-23 14:43:48 +10:00
parent 7e53598823
commit ae0aff848f

View File

@ -9,7 +9,8 @@
}:
let
hashes = (import ./hashes.nix).${engineVersion};
hashes = (import ./hashes.nix).${engineVersion} or
(throw "There are no known artifact hashes for Flutter engine version ${engineVersion}.");
artifacts =
{