How I can show error response message from my API server react-admin version 3.0 ?
This variant doesn't work https://github.com/marmelab/react-admin/pull/871
How I can show error response message from my API server react-admin version 3.0 ?
This variant doesn't work https://github.com/marmelab/react-admin/pull/871
I just return something like this from the backend:
{
'message':'Form validation error', //This is the message.
'HTTPCode':500
}
I'm pretty sure that I've read something about this on the docs, but I'm unable to find it.... Sorry....
It should really be more documented.
The documentation suggests you try structuring your error messages as follows:
{
myName: "This field is required",
myPhone: "Please use only digits"
}