Skip to content

Swallowing errors in v1 #75

@jcrben

Description

@jcrben

My project is not open-source and would have to do some work to create a reproduction, but I may get around to that later. But I'm noticing that this sometimes swallows errors. Node version 12.7.0

I'm seeing this:
image

I've run into this before and found the error with a debugger, but in this case vscode isn't picking up an exception - it's just restarting constantly. It seems to be related to this ConfigService
image. I eventually narrowed down the line where it stops and
after adding a try / catch around https://github.com/nestjs/nest/blob/2d5cd89135a77066870abaf067986cb1c08213ca/packages/core/injector/injector.ts#L213 I saw this:
image

I'm wondering if there's a way to adjust the code for the console without messing with the underlying nestjs code so that these errors are not swallowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions