treewide platform checks: abort -> throw

They aren't meant to be critical (uncatchable) errors.
Tested with nix-env + checkMeta:
[ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
This commit is contained in:
Vladimír Čunát
2017-12-06 00:06:43 +01:00
committed by Graham Christensen
parent 76bf375a16
commit 3a110ea3f9
21 changed files with 30 additions and 25 deletions

View File

@@ -9,7 +9,7 @@ let
"macosx"
else if stdenv.system == "aarch64-linux" then
"linux-arm"
else abort "Platform ${stdenv.system} not yet supported.";
else throw "Platform ${stdenv.system} not yet supported.";
in
stdenv.mkDerivation rec {

View File

@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
sha256 = "1skx2pfnic7pyss7c69qb7kg2xvflpxf112xkf9awk516dw1w4h7";
}
else
abort "Saleae Logic software requires i686-linux or x86_64-linux";
throw "Saleae Logic software requires i686-linux or x86_64-linux";
desktopItem = makeDesktopItem {
name = "saleae-logic";