Skip to content

Commit

Permalink
Merge branch 'new_branch'
Browse files Browse the repository at this point in the history
  • Loading branch information
jingrui-who committed Nov 7, 2016
2 parents 2f2f44f + af9292d commit 2730f8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/seedu/simply/logic/commands/EditCommand.java
Expand Up @@ -71,7 +71,7 @@ public CommandResult execute() {
Task edited = model.editTask(eventToEdit, editArgs, category);
lastShownEventList = model.getFilteredEventList();
EventsCenter.getInstance().post(new JumpToListRequestEvent(lastShownEventList.indexOf(edited), category));
} catch (TaskNotFoundException ive){
} catch (TaskNotFoundException ive) {
indicateAttemptToExecuteIncorrectCommand();
return new CommandResult(Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);
} catch (IllegalValueException ive) {
Expand All @@ -97,7 +97,7 @@ else if(category == 'D'){
Task edited = model.editTask(deadlineToEdit, editArgs, category);
lastShownDeadlineList = model.getFilteredDeadlineList();
EventsCenter.getInstance().post(new JumpToListRequestEvent(lastShownDeadlineList.indexOf(edited), category));
} catch (TaskNotFoundException ive){
} catch (TaskNotFoundException ive) {
indicateAttemptToExecuteIncorrectCommand();
return new CommandResult(Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);
} catch (IllegalValueException ive) {
Expand All @@ -123,7 +123,7 @@ else if(category == 'T'){
Task edited = model.editTask(todoToEdit, editArgs, category);
lastShownTodoList = model.getFilteredTodoList();
EventsCenter.getInstance().post(new JumpToListRequestEvent(lastShownTodoList.indexOf(edited), category));
} catch (TaskNotFoundException ive){
} catch (TaskNotFoundException ive) {
indicateAttemptToExecuteIncorrectCommand();
return new CommandResult(Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);
} catch (IllegalValueException ive) {
Expand Down

0 comments on commit 2730f8b

Please sign in to comment.