You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 32 there is a conditional that starts with:
if (!response.data.errmsg)
I think this is supposed to be:
if (!response.data.error)
I tried to cause an error with both and only the 2nd one looked like it console logged the output. I looked at the axios docs and could not find anything with response.data.errmsg
The text was updated successfully, but these errors were encountered:
I noticed the same thing and also addressed it by modifying the check on the response to look for data.error. Then, while testing something else, I did get back a data.errmsg! In my case, when I had a basic error like a missing required-field, I got back a full response object with data.error and all the other usual keys... but when I got submitted signup with a duplicate key (by mistake), I got back a MongoError with an entirely different shape:
On line 32 there is a conditional that starts with:
if (!response.data.errmsg)
I think this is supposed to be:
if (!response.data.error)
I tried to cause an error with both and only the 2nd one looked like it console logged the output. I looked at the axios docs and could not find anything with response.data.errmsg
The text was updated successfully, but these errors were encountered: