A
A
Alexander2021-08-24 14:50:38
Express.js
Alexander, 2021-08-24 14:50:38

How to properly handle express JS backend errors?

Hello, can you please tell me how to properly handle nodeJS backend errors so that I can get them as text on the front?
I have a registration form, I need to somehow receive errors with express in the form of text and also display the error itself in the form, how is it better to implement and what to use? Express validator or sequelise validate? I would be grateful for any article on this subject.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question