Skip to content

Commit

Permalink
fix(user): missing isCommon error check (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiremitrov123 authored Nov 17, 2023
1 parent 621e9e7 commit 5e2ce14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/inplayer.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
};
Expand Down

0 comments on commit 5e2ce14

Please sign in to comment.