Skip to content

Commit a732726

Browse files
authored
remove duplicate error handling (#736)
1 parent cb71343 commit a732726

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/entry.server.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import {
77
} from '@remix-run/node'
88
import { RemixServer } from '@remix-run/react'
99
import * as Sentry from '@sentry/remix'
10+
import chalk from 'chalk'
1011
import { isbot } from 'isbot'
1112
import { renderToPipeableStream } from 'react-dom/server'
1213
import { getEnv, init } from './utils/env.server.ts'
1314
import { getInstanceInfo } from './utils/litefs.server.ts'
1415
import { NonceProvider } from './utils/nonce-provider.ts'
1516
import { makeTimings } from './utils/timing.server.ts'
16-
import chalk from 'chalk'
1717

1818
const ABORT_DELAY = 5000
1919

@@ -71,10 +71,8 @@ export default async function handleRequest(...args: DocRequestArgs) {
7171
onShellError: (err: unknown) => {
7272
reject(err)
7373
},
74-
onError: (error: unknown) => {
74+
onError: () => {
7575
didError = true
76-
77-
console.error(error)
7876
},
7977
nonce,
8078
},

0 commit comments

Comments
 (0)