Skip to content

Edit command: Incorrect error message shown to users #4

@nat-ong555

Description

@nat-ong555

Description: When trying to edit a person at an invalid index, the error message shown does not reflect the invalid index problem

Steps to reproduce:

  1. Open TalentFolio.jar with the existing sample data loaded in the list
  2. edit 13 (or any invalid index not in the list)

Expected: The error message "Provided index is invalid" is shown

Actual: "At least one non-empty field to edit must be provided"

Screenshot 2025-04-11 170734.png

Instead of prompting the user to add in the field they want to edit, perhaps you could already tell them that the provided index is invalid, as they may have many candidates to look through and did not realise they keyed in the wrong index

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions