summaryrefslogtreecommitdiffstats
path: root/pkgs/games/factorio
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-09-07 19:12:10 +0200
committerVladimír Čunát <vcunat@gmail.com>2017-09-07 19:15:58 +0200
commitf9ea527a02773b33967bde2fe9675fb4d4d3c2e9 (patch)
tree526766baeda6a818fcb166d6305ddcdf362722b1 /pkgs/games/factorio
parent2ae7e952b2d841ab82e934f22f65609ecd92a51b (diff)
factorio: use `throw` instead of `abort`
Otherwise if you try to listing all available packages, you will get a hard error on platforms not supported by this package. Consequently the tarball job was broken.
Diffstat (limited to 'pkgs/games/factorio')
-rw-r--r--pkgs/games/factorio/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/factorio/default.nix b/pkgs/games/factorio/default.nix
index e10d97a047b4..5ca699c33176 100644
--- a/pkgs/games/factorio/default.nix
+++ b/pkgs/games/factorio/default.nix
@@ -26,7 +26,7 @@ let
demo = bdist { };
};
};
- actual = binDists.${stdenv.system}.${releaseType};
+ actual = binDists.${stdenv.system}.${releaseType} or throw "Factorio: unsupported platform";
bdistForArch = arch: { sha256 ? null
, version ? "0.15.34"
@@ -34,7 +34,7 @@ let
, nameMut ? x: x
}:
if sha256 == null then
- abort "Factorio ${releaseType}-${arch.inTar} binaries are not (and were never?) available to download"
+ throw "Factorio ${releaseType}-${arch.inTar} binaries are not (and were never?) available to download"
else {
inherit version arch;
src = fetcher {