U
U
Urukhayy2017-09-30 09:16:26
Node.js
Urukhayy, 2017-09-30 09:16:26

How to find out from which file and which line the error comes from through Promise?

If the error is in Promise, then the console does not show the file and the line with the error.
Outputs only:

(node:19662) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: transform is not a function

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Negwereth, 2017-09-30
@Negwereth

I would advise to fasten catch to each promise.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question