scripts: Simplify code with sys.exit(<string>)

Promote a handy and often-overlooked sys.exit() feature: Passing it a
string (or any other non-int object) prints it to stderr and exits with
status 1.

See the documentation at

This indirectly prints some errors to stderr that previously went to

Signed-off-by: Ulf Magnusson <>
11 files changed