summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/cmd-errors.exp
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-02-23 15:19:41 +0000
committerrillig <rillig@NetBSD.org>2021-02-23 15:19:41 +0000
commit7ab8a20c111ce3bbea36032fd3ca25c97536c0de (patch)
treed93771e7348e54cbdfe7b291f61c58cfeb67fa06 /usr.bin/make/unit-tests/cmd-errors.exp
parent1fa5ae2d3f9a9fb99165dd3abcde05e76b3d5f17 (diff)
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.
Diffstat (limited to 'usr.bin/make/unit-tests/cmd-errors.exp')
-rw-r--r--usr.bin/make/unit-tests/cmd-errors.exp2
1 files changed, 1 insertions, 1 deletions
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