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

How to catch and log that error ? #181

Open
hungify opened this issue Aug 21, 2022 · 1 comment
Open

How to catch and log that error ? #181

hungify opened this issue Aug 21, 2022 · 1 comment
Assignees
Labels

Comments

@hungify
Copy link

hungify commented Aug 21, 2022

I get an error at runtime
In app.ts and server.ts. If I use a function, I can catch and log that error but the class can't do it.

  1. function:

image

  1. class:

image

server.ts

bootstrap(resolvers).catch((error) => {
   console.error('ERROR STARTING SERVER: ', error);
});

@dap23
Copy link

dap23 commented Apr 6, 2023

have you try to throw an error into httpException?

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

No branches or pull requests

3 participants