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) {
|
if (stats != null) {
|
||||||
threadStats = stats
|
threadStats = stats
|
||||||
} else {
|
} else {
|
||||||
threadState = "Pruned"
|
threadState = String(res.status)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Server responded with non-OK status '${res.status}'`)
|
throw new Error(`Server responded with non-OK status '${res.status}'`)
|
||||||
|
@ -98,7 +98,7 @@ $().ready(() => {
|
||||||
updateSecondsByTSLP(lastPostC.getContent().getInfo())
|
updateSecondsByTSLP(lastPostC.getContent().getInfo())
|
||||||
}
|
}
|
||||||
} else if (res.status == 404) {
|
} else if (res.status == 404) {
|
||||||
threadState = "Pruned"
|
threadState = String(res.status)
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Server responded with non-OK status '${res.status}'`)
|
throw new Error(`Server responded with non-OK status '${res.status}'`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue