Skip to content

Commit

Permalink
Revert "Fix missing cause"
Browse files Browse the repository at this point in the history
This reverts commit 90fad31.

Messes with error replaying.
Fine to temporarily regress.
  • Loading branch information
eps1lon committed Dec 3, 2024
1 parent aa350bd commit 8eafe6e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,10 @@ async function startWatcher(opts: SetupOpts) {
frames
)

err.stack = stack
errorToLog = err
const error: NextError = new Error(err.message)
error.stack = stack
error.digest = err.digest
errorToLog = error
} else {
errorToLog = err
}
Expand Down
26 changes: 12 additions & 14 deletions test/integration/edge-runtime-streaming-error/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,22 @@ function createContext() {
return ctx
}

;(process.env.TURBOPACK_BUILD ? describe.skip : describe)(
'development mode',
() => {
const context = createContext()
// TODO(veil): Missing `cause` in Turbopack
;(process.env.TURBOPACK ? describe.skip : describe)('development mode', () => {
const context = createContext()

beforeAll(async () => {
context.appPort = await findPort()
context.app = await launchApp(appDir, context.appPort, {
...context.handler,
env: { __NEXT_TEST_WITH_DEVTOOL: '1' },
})
beforeAll(async () => {
context.appPort = await findPort()
context.app = await launchApp(appDir, context.appPort, {
...context.handler,
env: { __NEXT_TEST_WITH_DEVTOOL: '1' },
})
})

afterAll(() => killApp(context.app))
afterAll(() => killApp(context.app))

it('logs the error correctly', test(context))
}
)
it('logs the error correctly', test(context))
})
;(process.env.TURBOPACK_DEV ? describe.skip : describe)(
'production mode',
() => {
Expand Down

0 comments on commit 8eafe6e

Please sign in to comment.