Fixed referencing to CredentialError.