Skip to content
Snippets Groups Projects
  • Eelco Dolstra's avatar
    59b94ee1
    * When something goes wrong in the evaluation of a Nix expression, · 59b94ee1
    Eelco Dolstra authored
      print a nice backtrace of the stack, rather than vomiting a gigantic
      (and useless) aterm on the screen.  Example:
    
        error: while evaluating file `.../pkgs/system/test.nix':
        while evaluating attribute `subversion' at `.../pkgs/system/all-packages-generic.nix', line 533:
        while evaluating function at `.../pkgs/applications/version-management/subversion/default.nix', line 1:
        assertion failed at `.../pkgs/applications/version-management/subversion/default.nix', line 13
    
      Since the Nix expression language is lazy, the trace may be
      misleading.  The purpose is to provide a hint as to the location of
      the problem.    
      
    59b94ee1
    History
    * When something goes wrong in the evaluation of a Nix expression,
    Eelco Dolstra authored
      print a nice backtrace of the stack, rather than vomiting a gigantic
      (and useless) aterm on the screen.  Example:
    
        error: while evaluating file `.../pkgs/system/test.nix':
        while evaluating attribute `subversion' at `.../pkgs/system/all-packages-generic.nix', line 533:
        while evaluating function at `.../pkgs/applications/version-management/subversion/default.nix', line 1:
        assertion failed at `.../pkgs/applications/version-management/subversion/default.nix', line 13
    
      Since the Nix expression language is lazy, the trace may be
      misleading.  The purpose is to provide a hint as to the location of
      the problem.