fuzzyworld

hawk / commit

Report search exceptions.

8286d52b28011a64fbb94eb92df763234aebe78b · Pavel Safronov · 2023-10-13 16:55:39 -0700 · parents 0eb27ab9b001

Report search exceptions.
 public/main.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/public/main.js b/public/main.js
index 3e9e06a..2dc3d6a 100644
--- a/public/main.js
+++ b/public/main.js
@@ -83,6 +83,9 @@ async function searchForMatch() {
                 resultsDiv.innerHTML += html;
             });
         }
+    } catch (e) {
+        console.error(e);
+        reportStatus(`Encountered error while searching: ${e}`);
     } finally {
         searchButton.removeAttribute('disabled');
     }