Skip to content

Commit 6f53aff

Browse files
Moved String to after API call
1 parent 92515ab commit 6f53aff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

session/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ func New(args ...interface{}) *Session {
284284
//
285285
// For a description of parameters, see TransportHandler.DoRequest in this package
286286
func (r *Session) DoRequest(service string, method string, args []interface{}, options *sl.Options, pResult interface{}) error {
287-
r.LastCall = CallToString(service, method, args, options)
288287
if r.TransportHandler == nil {
289288
r.TransportHandler = getDefaultTransport(r.Endpoint)
290289
}
291290

292291
err := r.TransportHandler.DoRequest(r, service, method, args, options, pResult)
292+
r.LastCall = CallToString(service, method, args, options)
293293
if err != nil {
294294
return err
295295
}

0 commit comments

Comments
 (0)