From 7ab8a20c111ce3bbea36032fd3ca25c97536c0de Mon Sep 17 00:00:00 2001 From: rillig Date: Tue, 23 Feb 2021 15:19:41 +0000 Subject: make: improve error message for unknown modifier Back in 1995, the modifiers were all single-character, and it made sense to print only the first character. Nowadays, with ':S', ':@var@...@', '::=' and several others, a little more context is useful to see where the exact error is. The actual modifier is still guessed, and the guess may be wrong as soon as backslashes get involved, but it is still better than before. --- usr.bin/make/unit-tests/cmd-errors.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/make/unit-tests/cmd-errors.exp') diff --git a/usr.bin/make/unit-tests/cmd-errors.exp b/usr.bin/make/unit-tests/cmd-errors.exp index 6d9c6bb7f89..9ed0557975b 100644 --- a/usr.bin/make/unit-tests/cmd-errors.exp +++ b/usr.bin/make/unit-tests/cmd-errors.exp @@ -3,7 +3,7 @@ make: Unclosed variable "UNCLOSED" : unclosed-variable make: Unclosed variable expression (expecting '}') for "UNCLOSED" : unclosed-modifier -make: Unknown modifier 'Z' +make: Unknown modifier "Z" : unknown-modifier eol : end eol exit status 0 -- cgit