Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correctly rethrow instrumentation loading error #65251

Open
wants to merge 4 commits into
base: canary
Choose a base branch
from

Conversation

iscekic
Copy link

@iscekic iscekic commented May 1, 2024

we can't assume the thrown error will have a settable message property
if we do, we end up with an entirely different error thrown

Failed to prepare server TypeError: Cannot set property message of [object Object] which has only a getter
    at NextNodeServer.prepareImpl

we can't assume the thrown error will have a settable message property
if we do, we end up with an entirely different error thrown

Failed to prepare server TypeError: Cannot set property message of [object Object] which has only a getter
    at NextNodeServer.prepareImpl
@ijjk
Copy link
Member

ijjk commented May 1, 2024

Allow CI Workflow Run

  • approve CI run for commit: 310811d

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

packages/next/src/server/next-server.ts Outdated Show resolved Hide resolved
packages/next/src/server/next-server.ts Outdated Show resolved Hide resolved
@iscekic iscekic requested a review from AbhiShake1 May 2, 2024 10:43
@iscekic
Copy link
Author

iscekic commented May 2, 2024

@AbhiShake1 I don't have the time to get the test suite running locally right now - I did improve the line however, using the mdn-blessed way of rethrowing errors.

@AbhiShake1
Copy link
Contributor

@AbhiShake1 I don't have the time to get the test suite running locally right now - I did improve the line however, using the mdn-blessed way of rethrowing errors.

That should make it better. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants