Skip to content

Commit 3c0051a

Browse files
Merge pull request #95 from CSC207-2022F-UofT/94-search-error-message
Changed search error message for failed search, and added in an admin…
2 parents c3fbe69 + 307c144 commit 3c0051a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/data/Users.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ jempio,ilovejempio,false
33
ducas,badpassword,false
44
Anthony,123456,false,2
55
testUser,password,false,0,1
6+
adminUser,pass,true

src/main/java/search_use_case/SearchInteractor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ public SearchResponseModel create(SearchRequestModel requestModel) {
9090
return presenter.prepareSuccessView(result_set);
9191
}
9292
if (tags.size() > 0 && !input.equals("")){
93-
return presenter.prepareFailView("There are currently no FlashcardSets in the database.");
93+
return presenter.prepareFailView("There are currently no FlashcardSets in the database matching your" +
94+
" search input.");
9495
}
9596
// User chooses no tags
9697
if (tags.size() == 0){

0 commit comments

Comments
 (0)