Skip to content

Commit

Permalink
fix: use authorization error to token validation fail (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1989 authored and caicloud-bot committed Aug 7, 2019
1 parent 29065fe commit bd2f737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/biz/scm/bitbucket/server/server.go
Expand Up @@ -80,7 +80,7 @@ func (b *BitbucketServer) CheckToken() error {
return err
}
if len(repos) == 0 {
return cerr.ErrorExternalAuthenticationFailed.Error(fmt.Errorf("No repositories found"))
return cerr.ErrorExternalAuthorizationFailed.Error(fmt.Errorf("No repositories found"))
}
return nil
}
Expand Down

0 comments on commit bd2f737

Please sign in to comment.