Hey there,
the guide suggests to console.log
an error at the end of the: “Add a Create Note API” chapter.
Is there a specific reason (best-practices-wise) for not passing an error to the response body, like this:
catch (e) {
return failure({ status: false, error: e });
}
Like reducing the response load?
I found it sometimes useful in the past to have the errors right away in the dev tools, when work gets started on the frontend.