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

@@ -165,7 +165,7 @@ export default class Entrypoints extends Component {
const response = await server.get('search/' + encodeURIComponent(searchText) + '?includeNoteContent=true&excludeArchived=true&fuzzyAttributeSearch=false');
if (!response.success) {
toastService.showError("Search failed.", 3000);
toastService.showError("Search failed: " + response.message, 10000);
return;
}