thread_autoupdater.js: Display status code on err
This commit is contained in:
parent
a57e175b5a
commit
0dad3dc61b
|
@ -51,7 +51,7 @@ $().ready(() => {
|
|||
if (stats != null) {
|
||||
threadStats = stats
|
||||
} else {
|
||||
threadState = "Pruned"
|
||||
threadState = String(res.status)
|
||||
}
|
||||
} else {
|
||||
throw new Error(`Server responded with non-OK status '${res.status}'`)
|
||||
|
@ -98,7 +98,7 @@ $().ready(() => {
|
|||
updateSecondsByTSLP(lastPostC.getContent().getInfo())
|
||||
}
|
||||
} else if (res.status == 404) {
|
||||
threadState = "Pruned"
|
||||
threadState = String(res.status)
|
||||
} else {
|
||||
throw new Error(`Server responded with non-OK status '${res.status}'`)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue