Skip to content

Commit 52dc427

Browse files
dlinsleyhsinn0
authored andcommitted
use proper formatting for Errorf / Sprintf method
1 parent 006e3fb commit 52dc427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

credhub/auth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (a *OAuthStrategy) requestToken() error {
150150
}
151151

152152
if err != nil {
153-
return fmt.Errorf(fmt.Sprintf("Error getting token. Your token may have expired and could not be refreshed. Please try logging in again. [%s]", err.Error()))
153+
return fmt.Errorf("Error getting token. Your token may have expired and could not be refreshed. Please try logging in again. [%s]", err.Error())
154154
}
155155

156156
a.SetTokens(accessToken, refreshToken)

0 commit comments

Comments
 (0)