Skip to content

Commit

Permalink
Improve error state
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Aug 8, 2024
1 parent e934757 commit 9b8e0c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ watch(() => state.ppn, async (ppn) => {
} catch (error) {
console.error(error)
state.error = true
state.loading = false
console.timeEnd("Load title data")
console.timeEnd(`Load PPN ${ppn}`)
return
}
console.timeEnd("Load title data")
Expand Down Expand Up @@ -359,6 +363,9 @@ const examples = [
</tr>
</tbody>
</table>
<p v-else-if="state.error">
Fehler beim Laden von Titeldaten zu {{ state.ppn }}.
</p>
<p v-else-if="state.ppn && state.loadingPhase > 1 && !state.titleName">
Keine Titeldaten zu {{ state.ppn }} gefunden.
</p>
Expand Down

0 comments on commit 9b8e0c4

Please sign in to comment.