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

Better error.stack after deno bundle or deno compile #9430

Closed
iugo opened this issue Feb 7, 2021 · 1 comment
Closed

Better error.stack after deno bundle or deno compile #9430

iugo opened this issue Feb 7, 2021 · 1 comment
Labels
duplicate a duplicate of another issue

Comments

@iugo
Copy link
Contributor

iugo commented Feb 7, 2021

When using deno run webserver.ts directly, the error stack looks like this:

{
    "errStack": [
        "Error: test error",
        "    at router (router.ts:11:11)",
        "    at webserver.ts:44:17"
    ]
}

When used deno bundle or deno compile, the error stack looks like this:

{
    "errStack": [
        "Error: test error",
        "    at router (file://$deno$/bundle.js:8446:15)",
        "    at file://$deno$/bundle.js:8490:21"
    ]
}

It would be very helpful if the stack information of the ts file can also be available after compilation.

Maybe it is related to #4499.

@kitsonk kitsonk added the duplicate a duplicate of another issue label Feb 7, 2021
@kitsonk
Copy link
Contributor

kitsonk commented Feb 7, 2021

Duplicate of #4499 plus #8577, part of #8824

@kitsonk kitsonk closed this as completed Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants