diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index 11c12378ba8..0c138545f72 100644 --- a/pkgs/top-level/make-tarball.nix +++ b/pkgs/top-level/make-tarball.nix @@ -40,8 +40,9 @@ releaseTools.makeSourceTarball { checkPhase = '' # Run the regression tests in `lib'. - if test "$(nix-instantiate --eval-only --strict tests.nix)" != "List([])"; then - echo "regression tests for `lib' failed" + res="$(nix-instantiate --eval-only --strict tests.nix)" + if test "$res" != "List([])"; then + echo "regression tests for lib failed, got: $res" exit 1 fi