mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
spa: improve JSON error reporting in spa-json-dump
This commit is contained in:
parent
04c5d3958b
commit
a9fdc6a408
2 changed files with 5 additions and 4 deletions
|
|
@ -1317,8 +1317,7 @@ static int get_data_from_json(struct data *data, const char *json_path)
|
|||
|
||||
if (spa_json_get_error(&it[0], json, &loc)) {
|
||||
spa_debug_file_error_location(stderr, &loc,
|
||||
"JSON syntax error: %s\n",
|
||||
loc.reason);
|
||||
"JSON syntax error: %s\n", loc.reason);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue