From 551539560122965805993660ace6e1222dee4846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20Mynarz?= Date: Fri, 14 Nov 2025 19:46:01 +0100 Subject: [PATCH 1/2] Fix typo in error message for 504 status --- backend/static/js/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/static/js/helper.js b/backend/static/js/helper.js index 4b10757..d61dd55 100644 --- a/backend/static/js/helper.js +++ b/backend/static/js/helper.js @@ -72,7 +72,7 @@ async function fetchQleverBackend(params, additionalHeaders = {}) { case 503: throw new Error("503 Service Unavailable. The most common cause is that the QLever server is down. Please try again later and contact us if the error perists"); case 504: - throw new Error("504 Gatway Timeout. The most common cause is that the query timed out. Please try again later and contact us if the error perists"); + throw new Error("504 Gateway Timeout. The most common cause is that the query timed out. Please try again later and contact us if the error perists"); } let text; try { From 7603558d37b7060c479f121f27d67ce989b335b5 Mon Sep 17 00:00:00 2001 From: Jindrich Mynarz Date: Fri, 14 Nov 2025 19:49:28 +0100 Subject: [PATCH 2/2] Fix typos in 'persists' --- backend/static/js/helper.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/static/js/helper.js b/backend/static/js/helper.js index d61dd55..655557d 100644 --- a/backend/static/js/helper.js +++ b/backend/static/js/helper.js @@ -64,15 +64,15 @@ async function fetchQleverBackend(params, additionalHeaders = {}) { }, }); } catch (error) { - throw new Error(`Cannot reach ${BASEURL}. The most common cause is that the QLever server is down. Please try again later and contact us if the error persists`); + throw new Error(`Cannot reach ${BASEURL}. The most common cause is that the QLever server is down. Please try again later and contact us if the error persists.`); } switch(response.status) { case 502: - throw new Error("502 Bad Gateway. The most common cause is a problem with the web server. Please try again later and contact us if the error perists"); + throw new Error("502 Bad Gateway. The most common cause is a problem with the web server. Please try again later and contact us if the error persists."); case 503: - throw new Error("503 Service Unavailable. The most common cause is that the QLever server is down. Please try again later and contact us if the error perists"); + throw new Error("503 Service Unavailable. The most common cause is that the QLever server is down. Please try again later and contact us if the error persists."); case 504: - throw new Error("504 Gateway Timeout. The most common cause is that the query timed out. Please try again later and contact us if the error perists"); + throw new Error("504 Gateway Timeout. The most common cause is that the query timed out. Please try again later and contact us if the error persists."); } let text; try {