[Nix-dev] assertions / throwing an error-message

Marc Weber marco-oweber at gmx.de
Sun Nov 18 18:26:35 CET 2012


You can builtins.trace a message, then cause failing assertion.
AFAIK assertios show file, line. Thus its easy to lookup.

Maybe it would be a use case for a soft throw behaving like a failed
assertion - thus I'd not worry too much.

Marc Weber


More information about the nix-dev mailing list