Handle API error

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-14 16:02:01 +09:00
parent 9b0abd9338
commit ef9c554b74
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -137,6 +137,8 @@ $(document).ready(() => {
this.updateHighlightedLines(result.matches)
},
(error) => {
this.highlightedLines = null
console.error(error.responseText)
if (error.stack) {
console.error(error.stack)
}