1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00
2018-08-05 18:39:11 +02:00

13 lines
228 B
JavaScript

/*
* Helper: Get info from api error
*/
export const infoFromError = function(error) {
if (error.response && error.response.data && error.response.data.code) {
return error.response.data;
}
return null;
}