Skip to content

Commit

Permalink
Update status URL for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
imlayered authored Nov 13, 2024
1 parent 59a061e commit 03257e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ document.addEventListener("DOMContentLoaded", () => {
.then((response) => {
if (!response.ok) {
throw new Error(
"Database is unreachable/may be overloaded. \n\n\n\n -- No need to panic! -- \n--- What should I do? --- \n\n\n If you are a user: \n\n Please try again in a few minutes or check out our network status at status.layeredy.com \n\n\n If you are the site owner: \n\n Try re-checking in a few minutes or check your monitor configuration at app.uptimematrix.com if you are using a external database."
"Database is unreachable/may be overloaded. \n\n\n\n -- No need to panic! -- \n--- What should I do? --- \n\n\n If you are a user: \n\n Please try again in a few minutes or check out our network status at status.uptimematrix.com \n\n\n If you are the site owner: \n\n Try re-checking in a few minutes or check your monitor configuration at app.uptimematrix.com if you are using a external database."
);
}
return response.json();
Expand Down Expand Up @@ -68,7 +68,7 @@ document.addEventListener("DOMContentLoaded", () => {
hideLoadingAnimation();
displayErrorMessage();
console.error(
"--- What should I do? --- \n\n\n If you are a user: \n\n Please try again in a few minutes or check out our network status at status.layeredy.com \n\n\n If you are the site owner: \n\n Try re-checking in a few minutes or check your monitor configuration at app.uptimematrix.com if you are using a external database."
"--- What should I do? --- \n\n\n If you are a user: \n\n Please try again in a few minutes or check out our network status at status.uptimematrix.com \n\n\n If you are the site owner: \n\n Try re-checking in a few minutes or check your monitor configuration at app.uptimematrix.com if you are using a external database."
);
});

Expand Down Expand Up @@ -138,7 +138,7 @@ function displayErrorMessage() {
<p style="font-size: 0.8em;">Check if UptimeMatrix is having issues on our status page</p>
<p style="font-size: 0.6em;">This error has been reported to UptimeMatrix and we are looking into it.</p>
<br />
<button onclick="window.location.href='https://status.layeredy.com'" style="padding: 10px 20px; background-color: #0275d8; color: #fff; border: none; border-radius: 5px; cursor: pointer;">
<button onclick="window.location.href='https://status.uptimematrix.com'" style="padding: 10px 20px; background-color: #0275d8; color: #fff; border: none; border-radius: 5px; cursor: pointer;">
UptimeMatrix status
</button>
</div>
Expand Down

0 comments on commit 03257e0

Please sign in to comment.