Level 60
Try this
.catch(e => {
console.log(e);
}
and see what you get, you may need this.errors = e.errors; only, without.data
1 like
My validation error response is this.
{
"message":"The given data was invalid.",
"errors":{
"start":[
"The start field is required."
],
"end":[
"The end to field is required."
]
}
}
I read from L News blog that I could catch errors like this, but I dont hava a value?
.catch(e => {
this.errors = e.data.errors;
});
Please or to participate in this conversation.