Opened 3 years ago
Last modified 3 years ago
#311 new defect
Misleading error message from exec_com processor
| Reported by: | David Rosenberg | Owned by: | Eric Swenson |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Standard Library | Version: | MR12.8 |
| Keywords: | exec_com "error message" | Cc: |
Description
The following exec_com contains an error.
&version 2
&if &[or true &[equal A B] &then &print Misleading error message
The letter B should be followed by two close square brackets, not just one. However, the error message produced is
Nested control statement keyword "&then"
which seems to be rather misleading since there is only one occurrence of "&then" and hence it can't be nested.
Note:
See TracTickets
for help on using tickets.

In other situations, missing or extra close brackets are diagnosed correctly.
The command
produced the correct, helpful error message
command_processor_: Brackets do not balance.
and
also produced the same correct, helpful error message
command_processor_: Brackets do not balance.