build-support/portable-services: remove assertMsg usage

This commit is contained in:
Eman Resu
2026-05-26 14:14:55 -04:00
parent 002d961471
commit 4ea187a783
@@ -87,9 +87,9 @@ let
};
in
assert lib.assertMsg (lib.all (
u: lib.hasPrefix pname u.name
) units) "Unit names must be prefixed with the service name";
assert
lib.all (u: lib.hasPrefix pname u.name) units
|| throw "Unit names must be prefixed with the service name";
stdenv.mkDerivation {
pname = "${pname}-img";