Files
lix/tests/functional2/repl_characterization/overlays/repl_overlay_errors.md
T
rootile cb4703019b refactor(f2/repl): move overlays to overlay folder
Change-Id: I16e42eae00dc7a1f06300a81d69c637b9fa342df
2026-06-11 16:19:20 +02:00

1.8 KiB

args, should_fail, files
args should_fail files
--repl-overlays
{PWD}/repl-overlay-fail.nix
True
repl-overlay-fail.nix

repl-overlays that fail to evaluate should error.

Lix VERSION
Type :? for help.
Loading 'repl-overlays'...
error:
       … while calling anonymous lambda
         at «string»:2:16:
            1|
            2| info: initial: functions:
             |                ^
            3| let

       … while evaluating final
         at «string»:6:1:
            5| in
            6| final
             | ^
            7|

       … while calling the 'foldl'' builtin
         at «string»:4:11:
            3| let
            4|   final = builtins.foldl' (prev: function: prev // (function info final prev)) initial functions;
             |           ^
            5| in

       … while calling anonymous lambda
         at «string»:4:34:
            3| let
            4|   final = builtins.foldl' (prev: function: prev // (function info final prev)) initial functions;
             |                                  ^
            5| in

       … from call site
         at «string»:4:53:
            3| let
            4|   final = builtins.foldl' (prev: function: prev // (function info final prev)) initial functions;
             |                                                     ^
            5| in

       … while calling anonymous lambda
         at /pwd/repl-overlay-fail.nix:1:14:
            1| info: final: prev: builtins.abort "uh oh!"
             |              ^
            2|

       … while calling the 'abort' builtin
         at /pwd/repl-overlay-fail.nix:1:20:
            1| info: final: prev: builtins.abort "uh oh!"
             |                    ^
            2|

       error: evaluation aborted with the following error message: 'uh oh!'