about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/discord
diff options
context:
space:
mode:
authorannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2024-04-05 02:30:31 +0000
committerannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2024-04-05 02:30:42 +0000
commit0d7dc0efc540648d7052b4e7cbb0b14c454e7206 (patch)
tree9de178833975c7a707b17a8b241f17cec2efd2b5 /pkgs/applications/networking/instant-messengers/discord
parent86485bebac06ae466369b93fce9f92198895ccfc (diff)
treewide: throw on unsupported system src access
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/discord')
-rw-r--r--pkgs/applications/networking/instant-messengers/discord/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix
index 40e9c77e57a7f..423f6cb2f1db2 100644
--- a/pkgs/applications/networking/instant-messengers/discord/default.nix
+++ b/pkgs/applications/networking/instant-messengers/discord/default.nix
@@ -52,7 +52,7 @@ let
     };
     aarch64-darwin = x86_64-darwin;
   };
-  src = srcs.${stdenv.hostPlatform.system}.${branch};
+  src = srcs.${stdenv.hostPlatform.system}.${branch} or (throw "${stdenv.hostPlatform.system} not supported on ${branch}");
 
   meta = with lib; {
     description = "All-in-one cross-platform voice and text chat for gamers";