Skip to content

Commit 8b8b24e

Browse files
authored
Improve error handling in message sending
1 parent 1c6825c commit 8b8b24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

home/static/js/send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ document
5959
form.reset();
6060

6161
} catch (err) {
62-
alert('Unexpected error occurred, please send an issue to the github repository.');
62+
alert(err || 'Unexpected error occurred, please send an issue to the github repository.');
6363
} finally {
6464
submitBtn.disabled = false;
6565
}

0 commit comments

Comments
 (0)