aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/repl_characterization/data/regression_9918.test
blob: a85d6d33a7715d5677f6d2c761dce035b7e06695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@args --debugger
  error:
         … while evaluating the error message passed to builtin.throw

         error: cannot coerce a list to a string: [ ]

We expect to be able to see locals like r in the debugger:

  nix-repl> r
  [ ]

  nix-repl> :env
  Env level 0
  static: r x

  Env level 1
  abort baseNameOf break builtins derivation derivationStrict dirOf false fetchGit fetchMercurial fetchTarball fetchTree fromTOML import isNull map null placeholder removeAttrs scopedImport throw toString true

  nix-repl> :quit
  error:
         … while evaluating the file '$TEST_DATA/regression_9918.nix':

         … while calling the 'throw' builtin
           at $TEST_DATA/regression_9918.nix:3:7:
              2|   r = [];
              3|   x = builtins.throw r;
               |       ^
              4| in

         … while evaluating the error message passed to builtin.throw

         error: cannot coerce a list to a string: [ ]