Files
lix/doc/manual/rl-next/builtins-warn.md
T
Qyriad b3e24cb3e5 new option: abort-on-warn
Co-authored-by: Emilia Bopp <contact@ebopp.de>

Change-Id: I3c3347e51d8543fbeb2b4e6ed12b0f556a6a6964
2025-11-22 16:48:53 +01:00

901 B

synopsis, cls, category, credits
synopsis cls category credits
Add `builtins.warn` for emitting warnings from Nix code
2248
Features
milibopp
Qyriad

Lix now has a builtin function for emitting warnings. Like builtins.trace, it takes two arguments: the message to emit, and the expression to return. Unlike builtins.trace, builtins.warn requires the first argument — the message — to be a string. In the future we may extend builtins.warn to accept a more structured API.

To go along with this, we also have two new config settings: