From 4ea187a7835b3f049f8b4c49f8ab3893f3ee369d Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 26 May 2026 14:12:46 -0400 Subject: [PATCH] build-support/portable-services: remove assertMsg usage --- pkgs/build-support/portable-service/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/portable-service/default.nix b/pkgs/build-support/portable-service/default.nix index 48237af5370f..c0baecb7b767 100644 --- a/pkgs/build-support/portable-service/default.nix +++ b/pkgs/build-support/portable-service/default.nix @@ -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";