Incorrect CLI message when repo owner is over the plan limit

Issue #15065 open
Ronald Chia
staff created an issue

When a user is trying to push changes to a repository which was granted with direct access and the repo owner is over the plan limit, the Error message doesn't show the correct owner account.

Example:
Account username: newtteam
Repository link: https://bitbucket.org/newtteam/test.git/
Error message received:

remote: ********************************************************************************
remote: [ALERT] Your push failed because the account 'ronctest' has exceeded its
remote: [ALERT] user limit and this repository is restricted to read-only access.
remote: [ALERT] Contact the account admin to upgrade their plan to restore write access.
remote: [ALERT] For more info:
remote: [ALERT] https://confluence.atlassian.com/x/MAFgDQ
remote: ********************************************************************************
fatal: unable to access 'https://ronctest@bitbucket.org/newtteam/test.git/': The requested URL returned error: 402