Pressing escape while entering a command will show an error message instead of no message at all.
After entering /gamemode creative, deleted a character then pressed escape shows an error message when I expected it to show nothing. Related to MC-165562