aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Walle <mwalle@kernel.org>2024-03-26 10:39:34 +0100
committerTom Rini <trini@konsulko.com>2024-04-11 15:51:33 -0600
commita26bef219bf56363fa00c355029c04c5d6898697 (patch)
treead9f91388792fcaae90a62fb41bdc614d2fbb736 /tools
parentfbfd2baf975f4a0d6345e4d0ed6094c549fe1d03 (diff)
downloadu-boot-a26bef219bf56363fa00c355029c04c5d6898697.zip
u-boot-a26bef219bf56363fa00c355029c04c5d6898697.tar.gz
u-boot-a26bef219bf56363fa00c355029c04c5d6898697.tar.bz2
tools: binman: ti_board_cfg: improve error message
When there is a lint error the user gets the following cryptic message: binman: Node '/path/to/some/node': Yamllint error: 18: comments This isn't very helpful. Improve the message to tell the user that the number is actually a line number and also tell the user in which file they have to look. Signed-off-by: Michael Walle <mwalle@kernel.org> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/etype/ti_board_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/etype/ti_board_config.py b/tools/binman/etype/ti_board_config.py
index 2c3bb8f..c10d66e 100644
--- a/tools/binman/etype/ti_board_config.py
+++ b/tools/binman/etype/ti_board_config.py
@@ -248,7 +248,7 @@ class Entry_ti_board_config(Entry_section):
yaml_config = config.YamlLintConfig("extends: default")
for p in yamllint.linter.run(open(self._config_file, "r"), yaml_config):
- self.Raise(f"Yamllint error: {p.line}: {p.rule}")
+ self.Raise(f"Yamllint error: Line {p.line} in {self._config_file}: {p.rule}")
try:
validate(self.file_yaml, self.schema_yaml)
except Exception as e: