hawk / commit
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'); }