From e21c64b291390d0c53c5f82f87c99f76ce11a4ec Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 26 May 2026 14:10:30 -0400 Subject: [PATCH] build-support/dart: remove assertMsg usage --- pkgs/build-support/dart/pub2nix/pubspec-lock.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/dart/pub2nix/pubspec-lock.nix b/pkgs/build-support/dart/pub2nix/pubspec-lock.nix index 456236e18e5e..73788f535a90 100644 --- a/pkgs/build-support/dart/pub2nix/pubspec-lock.nix +++ b/pkgs/build-support/dart/pub2nix/pubspec-lock.nix @@ -94,8 +94,9 @@ let mkPathDependencySource = name: details: - assert lib.assertMsg details.description.relative - "Only relative paths are supported - ${name} has an absolue path!"; + assert + details.description.relative + || throw "Only relative paths are supported - ${name} has an absolue path!"; ( if lib.isDerivation src then src