mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix: Throw error on mdx parsing (#46555)
This commit is contained in:
1 parent
1d203f6c93
commit
cd16e85d86
1 file changed
+2
-2
@@ -140,9 +140,9 @@ export class GuideModelLoader {
|
||||
},
|
||||
(error) => {
|
||||
if (error instanceof Error && 'code' in error && error.code === 'ENOENT') {
|
||||
return new FileNotFoundError('', error)
|
||||
throw new FileNotFoundError('', error)
|
||||
}
|
||||
return new Error(
|
||||
throw new Error(
|
||||
`Failed to load guide from ${relPath}: ${extractMessageFromAnyError(error)}`,
|
||||
{
|
||||
cause: error,
|
||||
|
||||
Reference in new issue
Block a user