Skip to content

CLI commands fail silently when debug is enabled #687

@renataogarcia

Description

@renataogarcia

When debug is true on the FrameworkModule the CLI commands won't show errors in the console and fail silently.

Upon investigation I tracked the issue to a onAppShutdown listener. The dispatch is done here and the error is logged here, but some side effect in store.close prevents it from being logged.

How to reproduce the error:
The minimal reproduction is here.

ts-node app test does not display the exception that is throw in app.ts:14

Expected behaviour:
Error to be shown in the console even when debug is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions