about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nix/tag/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/tag/default.nix b/nix/tag/default.nix
index 23f369c2b2d1..9c55e6263b39 100644
--- a/nix/tag/default.nix
+++ b/nix/tag/default.nix
@@ -39,7 +39,7 @@ let
   # like `verifyTag`, but throws the error message if it is not a tag.
   assertIsTag = tag:
     let res = verifyTag tag; in
-    assert lib.assertMsg res.isTag res.errmsg;
+    assert res.isTag || throw res.errmsg;
     { inherit (res) name val; };