Skip to content

Wrong Error Message when adding a new Seller who has same name as a buyer #5

Description

@bbryant824

Wrong Error Message when adding a new Seller who has same name as a buyer

Description

When adding a new seller is when has same name as a buyer who already exists in the contact book, wrong message is shown as seller exist instead of buyer exist or a person exist already.

steps to reproduce

Launch the app and type in command box:
seller n/Bobby p/91124444 e/bobby123@gmail.com

Expected:
new seller added or error message saying a person with this name already exists in contact book.

Actual:
Error message: This seller already exists in the address book

Screenshot 2024-11-15 at 5.04.25 PM.png

Wrong error message as Bobby is a buyer and not a seller.

Improvements
change the error message, or change the system with duplicate names allowed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions