Commit 9b2ce157 authored by Daniel Caillibaud's avatar Daniel Caillibaud

aj de error.status

parent 279eb0c3
......@@ -12,6 +12,7 @@ const handleResponse = (response) => {
if (!ok || status >= 400) {
const error = Error(result.message || `Erreur ${status} ${statusText}`)
error.userFriendly = true
error.status = status
throw error
}
return result.data || result.message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment