Skip to content

Commit 16c58f2

Browse files
authoredDec 4, 2024··
fix: improve error message in SPA mode (#1973)
1 parent 1562e00 commit 16c58f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎packages/client/layouts/error.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<template>
22
<div class="px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono">
3-
An error occurred on this slide. Check the terminal for more information.
3+
{{
4+
__SLIDEV_HAS_SERVER__
5+
? 'An error occurred on this slide. Check the terminal for more information.'
6+
: 'Failed to fetch this slide. Please check your network connection.'
7+
}}
48
</div>
59
</template>

0 commit comments

Comments
 (0)
Please sign in to comment.