Git Product home page Git Product logo

nest-error-swallow-on-init's Introduction

Minimal repository for nestjs/nest#5162

Repro steps

  1. npm install
  2. npm start

Actual behavior

npm start outputs the error ("This error can't be caught") but doesn't output "This line should be reached, but isn't because Nest catches all exceptions and calls process.abort".

$ npm start

> [email protected] start /home/mathieu/tmp/nest-error-swallow-on-init
> nest start

[Nest] 1913322   - 07/30/2020, 6:45:05 AM   [NestFactory] Starting Nest application...
[Nest] 1913322   - 07/30/2020, 6:45:05 AM   [ExceptionHandler] This error can't be caught +9ms
Error: This error can't be caught
    at new AppController (/home/mathieu/tmp/nest-error-swallow-on-init/dist/app.controller.js:18:15)
    at Injector.instantiateClass (/home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/injector.js:290:19)
    at callback (/home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/injector.js:77:41)
    at async Injector.resolveConstructorParams (/home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/injector.js:118:24)
    at async Injector.loadInstance (/home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/injector.js:81:9)
    at async Injector.loadController (/home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/injector.js:29:9)
    at async Promise.all (index 0)
    at async InstanceLoader.createInstancesOfControllers (/home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/instance-loader.js:52:9)
    at async /home/mathieu/tmp/nest-error-swallow-on-init/node_modules/@nestjs/core/injector/instance-loader.js:30:13
    at async Promise.all (index 1)

Expected behavior

npm start outputs the error ("This error can't be caught") and "This line should be reached, but isn't because Nest catches all exceptions and calls process.abort".

nest-error-swallow-on-init's People

Contributors

larose avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.