From 51a6e2dc165c67cb49be6721211dad96bf6ec77c Mon Sep 17 00:00:00 2001 From: tayruxin Date: Sun, 12 Nov 2023 13:05:45 +0800 Subject: [PATCH 1/5] Correct exisitng error message --- src/main/java/seedu/address/logic/commands/EditCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index 905fbdefaf2..117346e9b2b 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -39,7 +39,7 @@ public class EditCommand extends Command { public static final String COMMAND_WORD = "edit"; - public static final String MESSAGE_USAGE = "Parameters: INDEX (must be a positive integer) " + public static final String MESSAGE_USAGE = "Format: INDEX (must be a positive integer) " + "[" + PREFIX_COMPANY_NAME + "COMPANY_NAME] " + "[" + PREFIX_RECRUITER_NAME + "RECRUITER_NAME] " + "[" + PREFIX_ROLE + "ROLE] " From 9e167357d9c5d722e015b0921dde8e782a34c3c2 Mon Sep 17 00:00:00 2001 From: tayruxin Date: Sun, 12 Nov 2023 14:47:41 +0800 Subject: [PATCH 2/5] Edit according to comments --- src/main/java/seedu/address/logic/commands/EditCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index 117346e9b2b..caead20cd73 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -39,7 +39,8 @@ public class EditCommand extends Command { public static final String COMMAND_WORD = "edit"; - public static final String MESSAGE_USAGE = "Format: INDEX (must be a positive integer) " + public static final String MESSAGE_USAGE = "Format: " + COMMAND_WORD + " " + + "INDEX (must be a positive integer) " + "[" + PREFIX_COMPANY_NAME + "COMPANY_NAME] " + "[" + PREFIX_RECRUITER_NAME + "RECRUITER_NAME] " + "[" + PREFIX_ROLE + "ROLE] " From e793a8ffed100241a60f65500abd9e6a86a52b73 Mon Sep 17 00:00:00 2001 From: tayruxin Date: Sun, 12 Nov 2023 14:49:39 +0800 Subject: [PATCH 3/5] Fix syntax error --- src/main/java/seedu/address/logic/commands/EditCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index caead20cd73..e57a9ae3d5e 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -39,7 +39,7 @@ public class EditCommand extends Command { public static final String COMMAND_WORD = "edit"; - public static final String MESSAGE_USAGE = "Format: " + COMMAND_WORD + " " + public static final String MESSAGE_USAGE = "Format: " + COMMAND_WORD + " " + "INDEX (must be a positive integer) " + "[" + PREFIX_COMPANY_NAME + "COMPANY_NAME] " + "[" + PREFIX_RECRUITER_NAME + "RECRUITER_NAME] " From 16691ea797f45a9bb22df3f6d094b37b929b46bf Mon Sep 17 00:00:00 2001 From: tayruxin Date: Sun, 12 Nov 2023 15:39:23 +0800 Subject: [PATCH 4/5] Edit error message for index --- src/main/java/seedu/address/logic/Messages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/Messages.java b/src/main/java/seedu/address/logic/Messages.java index b6546eeadc7..8538f7f195e 100644 --- a/src/main/java/seedu/address/logic/Messages.java +++ b/src/main/java/seedu/address/logic/Messages.java @@ -18,7 +18,7 @@ public class Messages { + "Please follow the command format below and try again! \n%1$s"; public static final String MESSAGE_INVALID_COMPANY_DISPLAYED_INDEX = - "Oops! You have entered an index that is greater than the number of companies that you have. " + "Oops! You have entered an index that is greater than the number of companies that you have in the list. " + "Please try again!"; public static final String MESSAGE_COMPANIES_LISTED_OVERVIEW = "Company(s) listed: %1$d"; From 43f681953ac67fc08114cc4776263288910bf083 Mon Sep 17 00:00:00 2001 From: tayruxin Date: Sun, 12 Nov 2023 18:48:31 +0800 Subject: [PATCH 5/5] Refine error messagae --- src/main/java/seedu/address/logic/Messages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/logic/Messages.java b/src/main/java/seedu/address/logic/Messages.java index 8538f7f195e..2b1b13a09cb 100644 --- a/src/main/java/seedu/address/logic/Messages.java +++ b/src/main/java/seedu/address/logic/Messages.java @@ -18,8 +18,8 @@ public class Messages { + "Please follow the command format below and try again! \n%1$s"; public static final String MESSAGE_INVALID_COMPANY_DISPLAYED_INDEX = - "Oops! You have entered an index that is greater than the number of companies that you have in the list. " - + "Please try again!"; + "Oops! You have entered an index that is greater than the number of companies that you have in the " + + "current list. Please try again!"; public static final String MESSAGE_COMPANIES_LISTED_OVERVIEW = "Company(s) listed: %1$d";