Improve error handling on change language.

This commit is contained in:
Paulo Gustavo Veiga 2022-09-15 21:49:39 -07:00
parent 2f0d6dcefe
commit 5fceeac91e

View File

@ -195,6 +195,9 @@ export default class RestClient implements Client {
})
.catch((error) => {
const errorInfo = this.parseResponseOnError(error.response);
// Enrich with language ...
errorInfo.msg = `${errorInfo.msg} - Language: ${locale}`;
reject(errorInfo);
});
};