build-support/portable-services: remove assertMsg usage
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user