firefox: add pname to throw message

https://github.com/NixOS/nixpkgs/pull/164646#discussion_r835879348
This commit is contained in:
Martin Weinelt 2022-03-27 15:10:43 +02:00 committed by Yuka
parent 05a6b3c2b7
commit 4cf4a7b848

View File

@ -127,7 +127,7 @@
}:
assert stdenv.cc.libc or null != null;
assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "pipewireSupport requires both wayland and webrtc support.";
assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "${pname}: pipewireSupport requires both wayland and webrtc support.";
let
flag = tf: x: [(if tf then "--enable-${x}" else "--disable-${x}")];