Skip to content

Commit

Permalink
🩹 do not display error message if the page is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaraku committed Nov 16, 2024
1 parent 5f093d8 commit b07871a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions layouts/error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default defineComponent({
<span v-text="title" />
</h1>
<p
v-if="!isNotFound"
class="red--text"
v-text="error.message"
/>
Expand Down
2 changes: 1 addition & 1 deletion utils/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export class PageNotFoundError extends Error {
statusCode = 404;

constructor() {
super('This page could not be found');
super('This page could not be found.');
}
}

0 comments on commit b07871a

Please sign in to comment.