diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2026-04-26 19:30:17 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2026-04-27 19:21:12 +0000 |
| commit | ea27ec183d0ff26e1273202841a02041b6d93955 (patch) | |
| tree | 9c2526b489168f232a0a8a192127c449eeb7954d | |
| parent | afa4648b6a30603faab56b649605a3393eac9986 (diff) | |
makeman.lua: Downgrade `make showconfig` error to warning
The sh-based makeman silently ignored errors from `make showconfig`.
Ignore errors also from makeman.lua (but emit a warning).
We may want to revisit this in the future, but want makeman.lua to
behave identically for now.
PR: 294822
Reviewed by: kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56663
| -rw-r--r-- | tools/build/options/makeman.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/build/options/makeman.lua b/tools/build/options/makeman.lua index af641ff6d638..a7b577d76efb 100644 --- a/tools/build/options/makeman.lua +++ b/tools/build/options/makeman.lua @@ -192,7 +192,10 @@ local function run_make(args) local _, exit_type, exit_code = assert(sys_wait.wait(pid)) assert(exit_type == "exited", "make exited with wrong status") - assert(exit_code == 0, "make exited unsuccessfully") + if exit_code ~= 0 then + io.stderr:write("Warning: make exited unsuccessfully\n" .. + "cmd: make " .. table.concat(args, " ") .. "\n") + end return output end |
