warn
builtins.warn
Primop
Docs pulled from | This Revision | 4 days ago
Takes 2 arguments
e1, e2
warn message value
Print a warning before returning the second argument.
See builtins.warn (Nix >= 2.23).
On older versions, the Nix 2.23 behavior is emulated with builtins.trace, including the NIX_ABORT_ON_WARN behavior, but not the nix.conf setting or command line option.
Inputs
message(String)-
Warning message to print before evaluating
value. value(any value)-
Value to return as-is.
Type
String -> a -> a
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. Builtins functions are predefined functions provided by Nix.
Noogle detected
Implementation
This function is implemented in c++ and is part of the native nix runtime.