strapi-sdk-javascript icon indicating copy to clipboard operation
strapi-sdk-javascript copied to clipboard

It's very difficult to handle errors after api call

Open rumenhan opened this issue 4 years ago • 0 comments

try { const res = await strapi.register(username, email, password); setToken(res); return res; } catch (error) { return Promise.reject(error); }

We can't parse the error message here

rumenhan avatar Jun 05 '20 13:06 rumenhan