provide better error message when user does not the credentials to a repo. [Finishes #81865072]

Signed-off-by: Frank Kotsianas <frankkotsianas@gmail.com>