1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Merge pull request #10592 from hercules-ci/builtins-warn

Add `builtins.warn`
This commit is contained in:
Eelco Dolstra 2024-06-03 17:16:32 +02:00 committed by GitHub
commit da92ad7dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 173 additions and 22 deletions

View file

@ -0,0 +1,10 @@
---
synopsis: "New builtin: `builtins.warn`"
issues: 306026
prs: 10592
---
`builtins.warn` behaves like `builtins.trace "warning: ${msg}"`, has an accurate log level, and is controlled by the options
[`debugger-on-trace`](@docroot@/command-ref/conf-file.md#conf-debugger-on-trace),
[`debugger-on-warn`](@docroot@/command-ref/conf-file.md#conf-debugger-on-warn) and
[`abort-on-warn`](@docroot@/command-ref/conf-file.md#conf-abort-on-warn).