show full error if module eval failed

This commit is contained in:
ibizaman 2024-11-11 00:10:29 +01:00 committed by Pierre Penninckx
parent df61b815ef
commit 54d7059aa7

View file

@ -248,7 +248,7 @@ rec {
results = pkgs.lib.runTests tests; results = pkgs.lib.runTests tests;
in in
if results != [ ] then if results != [ ] then
builtins.throw (concatStringsSep "\n" (map resultToString (lib.traceValSeqN 3 results))) builtins.throw (concatStringsSep "\n" (map resultToString (lib.traceValSeq results)))
else else
pkgs.runCommand "nix-flake-tests-success" { } "echo > $out"; pkgs.runCommand "nix-flake-tests-success" { } "echo > $out";