mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
config: verify: err_prefix(): include line/column info in message
This commit is contained in:
parent
d922bc572f
commit
a1e0ce2f87
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ err_prefix(const keychain_t *chain, const struct yml_node *node)
|
|||
static char msg[4096];
|
||||
int idx = 0;
|
||||
|
||||
idx += snprintf(&msg[idx], sizeof(msg) - idx, "%zu:%zu: ",
|
||||
yml_source_line(node), yml_source_column(node));
|
||||
|
||||
tll_foreach(*chain, key)
|
||||
idx += snprintf(&msg[idx], sizeof(msg) - idx, "%s.", key->item);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue