Skip to content

Commit

Permalink
chore: naming of vite dev server stopped error
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 committed Sep 30, 2024
1 parent aa4d272 commit b1bb8cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/sanity/src/core/error/ErrorLogger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function isKnownError(err: Error): boolean {
return true
}

if ('isViteDevServerStoppedError' in err && err.isViteDevServerStoppedError) {
if ('ViteDevServerStoppedError' in err && err.ViteDevServerStoppedError) {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/studio/StudioErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const StudioErrorBoundary: ComponentType<StudioErrorBoundaryProps> = ({
return <SchemaErrorsScreen schema={error.schema} />
}

if (error && 'isDevServerStoppedError' in error && error.isDevServerStoppedError) {
if (error && 'ViteDevServerStoppedError' in error && error.ViteDevServerStoppedError) {
return <DevServerStoppedErrorScreen />
}

Expand Down

0 comments on commit b1bb8cf

Please sign in to comment.