Parser test: Fix error message when encountering an error
This commit is contained in:
parent
bde841120a
commit
1ba891282e
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ expect_expr(struct parser_test *pt, struct apfl_expr expected)
|
|||
test_fatalf(pt->t, "Extected an expression but got EOF");
|
||||
break;
|
||||
case APFL_PARSE_ERROR:
|
||||
test_failf(pt->t, "Got an error instead of an EOF");
|
||||
test_failf(pt->t, "Got an error instead of an expression");
|
||||
apfl_error_print(apfl_parser_get_error(pt->parser), stderr);
|
||||
test_fatal(pt->t);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue