Improve error reporting

Fixes #16
This commit is contained in:
Dessa Simpson 2020-09-19 18:14:58 -07:00
parent 76aa7b3bc4
commit b334066f8f
2 changed files with 7 additions and 7 deletions

View file

@ -110,7 +110,7 @@ function addVote(url) {
})})
.then(response => {
if (!response.ok) {
response.text().then(addRequestErr);
response.text().then(showMessage);
return;
}
updateTable();