Skip to content

Commit

Permalink
fix: show error message
Browse files Browse the repository at this point in the history
Backend every send as string and not as array

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Dec 2, 2024
1 parent 2e53263 commit f39371d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/views/DefaultPageError.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@
<div class="container">
<div id="img" />
<div class="content">
<h1>{{ code || '404' }}</h1>
<h1>404</h1>
<h2>
{{ message || t('libresign', 'Page not found') }}
{{ t('libresign', 'Page not found') }}
</h2>
<p>{{ paragth }}</p>
<NcNoteCard v-if="errors.length > 0" type="error" heading="Error">
<p v-for="error in errors" :key="error">
{{ error }}
</p>
<p>{{ paragrath }}</p>
<NcNoteCard v-if="error" type="error" heading="Error">
{{ error }}
</NcNoteCard>
</div>
</div>
Expand All @@ -53,8 +51,8 @@ export default {

data() {
return {
paragth: t('libresign', 'Sorry but the page you are looking for does not exist, has been removed, moved or is temporarily unavailable.'),
errors: loadState('libresign', 'errors', []),
paragrath: t('libresign', 'Sorry but the page you are looking for does not exist, has been removed, moved or is temporarily unavailable.'),
error: loadState('libresign', 'error', {})?.message,
}
},

Expand Down

0 comments on commit f39371d

Please sign in to comment.