Skip to content

Commit

Permalink
Merge pull request #314 from shiyao821/master
Browse files Browse the repository at this point in the history
fix: data not found bug
  • Loading branch information
shiyao821 authored Nov 10, 2019
2 parents 7199f14 + b821b23 commit 156a2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MainApp extends Application {
public static final Version VERSION = new Version(1, 4, 0, true);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);
private static final String MESSAGE_DATA_NOT_FOUND = "Data file not found. "
private static final String MESSAGE_DATA_NOT_FOUND = "Data file(s) not found. "
+ "Will be starting with sample library records";
private static final String MESSAGE_DATA_INCORRECT_FORMAT = "Data file(s) not in the correct format. "
+ "Will be starting with sample library records";
Expand Down Expand Up @@ -104,7 +104,7 @@ private Model initModelManager(Storage storage, ReadOnlyUserPrefs userPrefs) {
loanRecordsOptional = storage.readLoanRecords();
if (loanRecordsOptional.isEmpty()) {
logger.info(MESSAGE_DATA_NOT_FOUND);
return getSampleModelManager(userPrefs, "");
return getSampleModelManager(userPrefs, MESSAGE_DATA_NOT_FOUND);
}
initialLoanRecords = loanRecordsOptional.get();
catalogOptional = storage.readCatalog(initialLoanRecords);
Expand Down

0 comments on commit 156a2bc

Please sign in to comment.