The bug
The selector syntax help overwrites error messages. Instead if possible both messages should be displayed.
How to reproduce
Type or copy the following command
/data get entity @e[type=player
→ ❌ Only the syntax help is shown despite the selector being invalid because it can target more than one entity
May be intended since you're clearly not finished completing that argument.