Skip to content

Commit

Permalink
Merge pull request #101 from Discord-Dashboard/error-#100
Browse files Browse the repository at this point in the history
Fixes 404 error text
  • Loading branch information
iMidnights authored Jun 16, 2024
2 parents 4edd0d6 + 37205cd commit c3c05a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/functions/errorHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c3c05a9

Please sign in to comment.