]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
b4-wrapper-poky.py: output errors to stderr
authorQuentin Schulz <quentin.schulz@cherry.de>
Tue, 25 Mar 2025 09:07:54 +0000 (10:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Mar 2025 21:20:05 +0000 (21:20 +0000)
commit225990c55a5cbf8498e2aa775e6406c27a4c0ea7
tree97ea7b808481658738f21da58717692f1b113524
parent861d6a37e9457510e526c7cd5a63c82d9c48b591
b4-wrapper-poky.py: output errors to stderr

Print error messages to stderr instead of stdout.

The commands run as part of send-auto-cc-cmd and send-auto-to-cmd b4
commands will make b4 raise an Exception if they return a non-zero
return code and it will only print the content of stderr before that.

Because print defaults to stdout, b4 would raise the exception and not
tell the user why. This commit should now provide a hint to the user
about what went wrong.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/b4-wrapper-poky.py