zephyr/scripts/kconfig
Ulf Magnusson 5372dedf2f scripts: kconfig: lint.py: Improve error reporting
If the working directory for a command was missing (usually due to
forgetting to run 'west update'), you'd get a FileNotFoundError
exception along with a cryptic error like

    'git' not found

Only catch OSError instead (which is a base class of FileNotFoundError),
and always show the exception message. It makes it clear that it's the
working directory that's missing.

Add some other misc. improvements too:

 - Turn stderr output from external commands into a warning instead of
   an error

 - Add err() and warn() helpers

 - Include the command name in messages

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-01-09 11:19:57 -05:00
..
diffconfig license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
guiconfig.py kconfig: Update Kconfiglib and use new helpers in kconfig.py 2019-11-07 15:34:09 +01:00
hardenconfig.py hardening: Introducing hardenconfig tool 2019-12-09 12:54:29 -05:00
hardened.csv hardening: Introducing hardenconfig tool 2019-12-09 12:54:29 -05:00
kconfig.py kconfiglib: Update to hide tracebacks for expected errors 2019-12-20 19:48:09 -05:00
kconfigfunctions.py script/Kconfig: kconfig functions: Add shields_list_contains function 2020-01-02 17:02:41 -05:00
kconfiglib.py kconfiglib: Update to hide tracebacks for expected errors 2019-12-20 19:48:09 -05:00
lint.py scripts: kconfig: lint.py: Improve error reporting 2020-01-09 11:19:57 -05:00
menuconfig.py kconfiglib: Update to hide tracebacks for expected errors 2019-12-20 19:48:09 -05:00