diff --git a/tests/run-parser-test-suite.c b/tests/run-parser-test-suite.c index 36fdfc6308c68d9c9861decb3032227a9097978c_dGVzdHMvcnVuLXBhcnNlci10ZXN0LXN1aXRlLmM=..c2c0149f86820448c7c1701bf86509b37099fc15_dGVzdHMvcnVuLXBhcnNlci10ZXN0LXN1aXRlLmM= 100644 --- a/tests/run-parser-test-suite.c +++ b/tests/run-parser-test-suite.c @@ -30,7 +30,15 @@ while (1) { yaml_event_type_t type; if (!yaml_parser_parse(&parser, &event)) { - fprintf(stderr, "Parse error: %s\n", parser.problem); + if ( parser.problem_mark.line || parser.problem_mark.column ) { + fprintf(stderr, "Parse error: %s\nLine: %lu Column: %lu\n", + parser.problem, + (unsigned long)parser.problem_mark.line + 1, + (unsigned long)parser.problem_mark.column + 1); + } + else { + fprintf(stderr, "Parse error: %s\n", parser.problem); + } return 1; } type = event.type;