mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-24 15:37:55 +01:00
Improve error handling on change language.
This commit is contained in:
parent
2f0d6dcefe
commit
5fceeac91e
@ -195,6 +195,9 @@ export default class RestClient implements Client {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const errorInfo = this.parseResponseOnError(error.response);
|
const errorInfo = this.parseResponseOnError(error.response);
|
||||||
|
|
||||||
|
// Enrich with language ...
|
||||||
|
errorInfo.msg = `${errorInfo.msg} - Language: ${locale}`;
|
||||||
reject(errorInfo);
|
reject(errorInfo);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user