@@ -176,7 +176,7 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
176
176
return fmt .Errorf ("error when authenticate on cf: %s" , err )
177
177
}
178
178
if accessToken == "" {
179
- return fmt .Errorf ("a pair of username/password or a pair of client_id/client_secret muste be set. " )
179
+ return fmt .Errorf ("a pair of username/password or a pair of client_id/client_secret muste be set" )
180
180
}
181
181
182
182
config .SetAccessToken (fmt .Sprintf ("bearer %s" , accessToken ))
@@ -202,7 +202,7 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
202
202
uaaClientSess .WrapConnection (uaaWrapper .NewRetryRequest (config .RequestRetryCount ()))
203
203
err = uaaClientSess .SetupResources (info .UAA (), info .Login ())
204
204
if err != nil {
205
- return fmt .Errorf ("Error setup resource uaa: %s" , err )
205
+ return fmt .Errorf ("error setup resource uaa: %s" , err )
206
206
}
207
207
208
208
var accessTokenSess string
@@ -222,10 +222,10 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
222
222
}
223
223
224
224
if err != nil {
225
- return fmt .Errorf ("Error when authenticate on uaa: %s" , err )
225
+ return fmt .Errorf ("error when authenticate on uaa: %s" , err )
226
226
}
227
227
if accessTokenSess == "" {
228
- return fmt .Errorf ("a pair of pair of uaa_client_id/uaa_client_secret muste be set. " )
228
+ return fmt .Errorf ("a pair of pair of uaa_client_id/uaa_client_secret muste be set" )
229
229
}
230
230
configUaa .SetAccessToken (fmt .Sprintf ("bearer %s" , accessTokenSess ))
231
231
configUaa .SetRefreshToken (refreshTokenSess )
0 commit comments