spraakbanken / korp-frontend

Frontend for Korp, a tool using the IMS Open Corpus Workbench (CWB).
https://spraakbanken.gu.se/en/tools/korp
MIT License
16 stars 8 forks source link

Word picture: More appropriate message on backend errors #242

Open janiemi opened 2 years ago

janiemi commented 2 years ago

When the word picture search fails due to a backend error, the word picture result tab shows the message “Could not generate a word picture from you search. Only 'Simple search' on one word or lemgram is supported.”, even if the search is of the kind for which word picture is supported.

This currently happens for this Korp search, which at present causes a GreenletExit in the backend (see spraakbanken/korp-backend#10). Even though that situation might be temporary, I think the frontend should show a different error message.

majsan commented 2 years ago

Agree!