build-support/compressdrv: remove assertMsg usage

This commit is contained in:
Eman Resu
2026-05-26 14:09:50 -04:00
parent f7f010d75a
commit cfad443c70

View File

@@ -64,9 +64,7 @@ let
let
matches = (builtins.length (builtins.split "\\{}" prog) - 1) / 2;
in
lib.assertMsg (
matches == 1
) "compressor ${ext} needs to have exactly one '{}', found ${toString matches}";
matches == 1 || throw "compressor ${ext} needs to have exactly one '{}', found ${toString matches}";
mkCmd =
ext: prog:
assert validProg ext prog;