avrilmohh / pe

0 stars 0 forks source link

Edit command generic error message given for wrong prefix #6

Closed avrilmohh closed 3 days ago

avrilmohh commented 4 days ago

When executing "edit 1 m/Charlie Lim", the error returned is "Invalid command format!", when it should be telling the user that the wrong prefix is being used or that the m/ prefix is not supported in this command.

image.png

A user could accidentally type "m" instead of "n" when trying to edit the person's name due to m and n being so close on the keyboard so it is important that NUStates tell the user that they used the wrong prefix through an error message.