From e33c6825fc25c12188834b3e4dba26a199ae8e67 Mon Sep 17 00:00:00 2001 From: Jon <134811123+jonsmy@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:21:16 +0000 Subject: [PATCH] thread_autoupdater.js: Display status code on err --- js/lcn/thread_autoupdater.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/lcn/thread_autoupdater.js b/js/lcn/thread_autoupdater.js index a95c41df..18529c44 100644 --- a/js/lcn/thread_autoupdater.js +++ b/js/lcn/thread_autoupdater.js @@ -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}'`) }