AY2223S2-CS2103T-T13-1 / tp

https://ay2223s2-cs2103t-t13-1.github.io/tp/
MIT License
0 stars 5 forks source link

Prettify our error messages #65

Closed jmestxr closed 1 year ago

jmestxr commented 1 year ago

Currently, our error messages are a little hard to read, and not very user-friendly in my opinion. E.g.

Screenshot 2023-03-11 at 11 34 51 PM

Some suggestions I thought of:

Perhaps this is partly because the width of the CliScreen of the GUI is a little too narrow. To overcome this, we could add newlines (\n) to segregate relevant subsections of the error message, like how we do it in code.

Invalid command format!

add: Adds a module to the module list.

Parameters: 
/m <MODULE CODE>
/c <MODULE CREDITS>
...

Example:
add /m CS1101S /y Y1S1 ...
Jun-How commented 1 year ago

In addition to re-formatting all error messages, I will be including possible edge cases and slightly modifying the correct output messages to make them look more user-friendly. This may include changes to certain classes.