V
V
veryoriginalnickname2021-07-31 17:29:53
Backend
veryoriginalnickname, 2021-07-31 17:29:53

Send errors in array or one at a time?

Let's say we validate the data, and generally process errors. What is the best way to send these errors back?
1. Pass all validation, collect errors in an array and send
2. Send the first error immediately

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-07-31
@veryoriginalnickname

when validating first.
in case of errors, everything depends on their nature: critical - the second, non-critical - the first.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question