AidenLYT / pe

0 stars 0 forks source link

Specificity of error message #1

Closed AidenLYT closed 7 months ago

AidenLYT commented 7 months ago

image.png

Description

Error message is not specific enough

Steps to reproduce

  1. Launch the application
  2. Run command ac n/DAVID Li c/F14-4 e/lidavid@example.com p/91031282 t/@david123 g/david123

Expected behavior

This person contains duplicated name with another person

Actual behavior

This person contains duplicated fields (Email, Phone, Telegram, or Github) with another person.

Reason for severity

It inconveniences the user as the error message did not pinpoint to which field is repeated by gave a vague error message. User has to look through the long input in the command line to pinpoint the duplication manually.

Error message also did not pinpoint to which index of the contact is duplicated. User has to scroll through the contact list and find one by one which field is duplicated.

Ideas

  1. Pinpoint which field is duplicated. Is it email or phone?
  2. Pinpoint which contact in the list has the same field.