Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
module.exports = function (response) {
|
||||
const responseJSON = response && response.responseJSON;
|
||||
let errors = responseJSON && responseJSON.message;
|
||||
|
||||
if (responseJSON && responseJSON.errors && responseJSON.errors.length) {
|
||||
errors = responseJSON.errors.join('. ') + '. ';
|
||||
}
|
||||
|
||||
return errors;
|
||||
};
|
||||
Reference in New Issue
Block a user