mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 03:07:57 +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) => {
|
||||
const errorInfo = this.parseResponseOnError(error.response);
|
||||
|
||||
// Enrich with language ...
|
||||
errorInfo.msg = `${errorInfo.msg} - Language: ${locale}`;
|
||||
reject(errorInfo);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user