[Nix-dev] [Nix-commits] [NixOS/nix] 18a48d: Show function names in error messages

Shea Levy shea at shealevy.com
Thu May 23 18:42:25 CEST 2013


Awesome, thanks!

On May 23, 2013, at 12:26, Eelco Dolstra <eelco.dolstra at logicblox.com> wrote:

>  Branch: refs/heads/master
>  Home:   https://github.com/NixOS/nix
>  Commit: 18a48d80a0686ba81959057e8becc6272acd6c46
>      https://github.com/NixOS/nix/commit/18a48d80a0686ba81959057e8becc6272acd6c46
>  Author: Eelco Dolstra <eelco.dolstra at logicblox.com>
>  Date:   2013-05-16 (Thu, 16 May 2013)
> 
>  Changed paths:
>    M src/libexpr/eval.cc
>    M src/libexpr/nixexpr.cc
>    M src/libexpr/nixexpr.hh
>    M src/libexpr/parser.y
>    M src/libexpr/symbol-table.hh
> 
>  Log Message:
>  -----------
>  Show function names in error messages
> 
> Functions in Nix are anonymous, but if they're assigned to a
> variable/attribute, we can use the variable/attribute name in error
> messages, e.g.
> 
> while evaluating `concatMapStrings' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:18:25':
> ...
> 
> 
> 
> _______________________________________________
> nix-commits mailing list
> nix-commits at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-commits


More information about the nix-dev mailing list