cnivedit / pe

0 stars 0 forks source link

Error message for edit command not descriptive for invalid number indices #5

Closed cnivedit closed 1 week ago

cnivedit commented 2 weeks ago

Steps to recreate the bug:

  1. Create a question for a module, say CS2113
  2. Attempt using the edit command for invalid indices, first an invalid number, second an invalid character input
  3. Observe the difference in the error message displayed

The program displays "please enter a valid index for indices with characters". However, for an invalid index such as 0, there is no description for the error message and it displays "uh oh bad command"

image.png

The issue persists with the multi-line format for the edit command as well

image.png