From 62717ef6b2a4f82f92e8ee14e58cb179e2f9ebfa Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Thu, 14 Nov 2024 11:49:47 -0500 Subject: [PATCH] fix: update error template --- static/check_update.js | 2 ++ templates/error.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/static/check_update.js b/static/check_update.js index 7741edb..b68c508 100644 --- a/static/check_update.js +++ b/static/check_update.js @@ -21,8 +21,10 @@ async function checkInstanceUpdateStatus() { statusMessage = '✅ Instance is up to date.'; } else if (commitIndex > 0) { statusMessage = `⚠️ This instance is not up to date and is ${commitIndex} commits old. Test and confirm on an up-to-date instance before reporting.`; + document.getElementById('error-318').remove(); } else { statusMessage = `⚠️ This instance is not up to date and is at least ${commitHashes.length} commits old. Test and confirm on an up-to-date instance before reporting.`; + document.getElementById('error-318').remove(); } } else { statusMessage = '⚠️ Unable to fetch commit information.'; diff --git a/templates/error.html b/templates/error.html index f7a2d5d..8f2f44d 100644 --- a/templates/error.html +++ b/templates/error.html @@ -15,6 +15,8 @@ href="https://github.com/redlib-org/redlib/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=%F0%9F%90%9B+Bug+Report%3A+{{ msg }}">Report an issue
+

If you're getting a "Failed to parse page JSON data" error, please check #318

+

Head back home?

{% endblock %}