mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:08:12 +00:00
test: Print the correct operator on error
This commit is contained in:
parent
7760c00714
commit
caab6ac968
1 changed files with 3 additions and 1 deletions
|
@ -390,7 +390,9 @@ static OwnPtr<Condition> parse_simple_expression(char* argv[])
|
||||||
case 'N':
|
case 'N':
|
||||||
case 'O':
|
case 'O':
|
||||||
case 's':
|
case 's':
|
||||||
fatal_error("Unsupported operator \033[1m%s", argv[optind]);
|
// 'optind' has been incremented to refer to the argument after the
|
||||||
|
// operator, while we want to print the operator itself.
|
||||||
|
fatal_error("Unsupported operator \033[1m%s", argv[optind - 1]);
|
||||||
default:
|
default:
|
||||||
--optind;
|
--optind;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue