diff --git a/src/main/java/seedu/address/logic/LogicManager.java b/src/main/java/seedu/address/logic/LogicManager.java index 8635979cc51..85b8210b84f 100644 --- a/src/main/java/seedu/address/logic/LogicManager.java +++ b/src/main/java/seedu/address/logic/LogicManager.java @@ -37,6 +37,7 @@ public class LogicManager implements Logic { public static final String FILE_OPS_ERROR_MESSAGE = "Could not save data to file: "; + public static final String FILE_READ_ERROR_MESSAGE = "Could not read data from file: "; private final Logger logger = LogsCenter.getLogger(LogicManager.class); private final Model model; diff --git a/src/main/java/seedu/address/logic/archive/Archive.java b/src/main/java/seedu/address/logic/archive/Archive.java index 52d07fa0ca4..4b69e17f8b6 100644 --- a/src/main/java/seedu/address/logic/archive/Archive.java +++ b/src/main/java/seedu/address/logic/archive/Archive.java @@ -88,7 +88,7 @@ public CommandResult importFromArchive(Path archivedPath, Model model, boolean i } catch (IOException ioe) { throw new CommandException(LogicManager.FILE_OPS_ERROR_MESSAGE + ioe, ioe); } catch (DataConversionException dce) { - throw new CommandException(LogicManager.FILE_OPS_ERROR_MESSAGE + dce, dce); + throw new CommandException(LogicManager.FILE_READ_ERROR_MESSAGE + dce, dce); } if (isImportingWholeArchive) {