Skip to content

Commit 825e71d

Browse files
AlbertBrandkermanx
andauthored
Update error message
Co-authored-by: _Kerman <[email protected]>
1 parent e247019 commit 825e71d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/slidev/node/virtual/slides.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const templateSlides: VirtualModuleTemplate = {
2727
// For some unknown reason, import error won't be caught by the error component. Catch it here.
2828
`const load${no} = async () => {`,
2929
` try { return componentsCache[${idx}] ??= await import('${VIRTUAL_SLIDE_PREFIX}${no}/md') }`,
30-
` catch (e) { console.error('slide import failed', e); return SlideError }`,
30+
` catch (e) { console.error('slide failed to load', e); return SlideError }`,
3131
`}`,
3232
)
3333
return `{ no: ${no}, meta: f${no}, load: load${no}, component: getAsyncComponent(${idx}, load${no}) }`

0 commit comments

Comments
 (0)