From 37205cd7ea8cf6947eeba63f3c7bcb5cd851b683 Mon Sep 17 00:00:00 2001 From: iMidnight Date: Sat, 15 Jun 2024 23:13:20 -0500 Subject: [PATCH] Fixes 404 error text Fixes issue #100 --- utils/functions/errorHandler.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/functions/errorHandler.js b/utils/functions/errorHandler.js index bf2377a7..eb360f13 100644 --- a/utils/functions/errorHandler.js +++ b/utils/functions/errorHandler.js @@ -7,14 +7,14 @@ module.exports = function (config, themeConfig) { description = themeConfig?.error?.error404?.description || 'The page you are looking for does not exist.' + } else { + title = themeConfig?.error?.dbdError?.title || type.toString() + subtitle = themeConfig?.error?.dbdError?.subtitle || 'An error occurred' + description = + themeConfig?.error?.dbdError?.description || + 'Please contact us if the issue persists or try again later.' } - title = themeConfig?.error?.dbdError?.title || type.toString() - subtitle = themeConfig?.error?.dbdError?.subtitle || 'An error occurred' - description = - themeConfig?.error?.dbdError?.description || - 'Please contact us if the issue persists or try again later.' - if (error) { console.error(error) }