better error reporting on failed search

This commit is contained in:
zadam
2020-09-23 22:18:26 +02:00
parent 2b1383205b
commit bdebb35f62
5 changed files with 20 additions and 3 deletions

View File

@@ -17,7 +17,8 @@ function searchNotes(req) {
try {
return {
success: true,
success: !searchContext.hasError(),
message: searchContext.getError(),
count,
results
}