diff --git a/src/services/inplayer.account.service.ts b/src/services/inplayer.account.service.ts index 045372ac1..601f36a87 100644 --- a/src/services/inplayer.account.service.ts +++ b/src/services/inplayer.account.service.ts @@ -423,7 +423,10 @@ export default class InplayerAccountService extends AccountService { errors: [], responseData: {}, }; - } catch { + } catch (error: unknown) { + if (isCommonError(error)) { + throw new Error(error.response.data.message); + } throw new Error('Failed to change password.'); } };