spa: improve JSON error reporting in spa-json-dump

This commit is contained in:
Wim Taymans 2024-03-27 15:57:39 +01:00
parent 04c5d3958b
commit a9fdc6a408
2 changed files with 5 additions and 4 deletions

View file

@ -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;
}