Skip to content

Commit

Permalink
Fix not print error
Browse files Browse the repository at this point in the history
  • Loading branch information
NV4RE committed Jul 14, 2021
1 parent 67788bb commit 7a9642a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (c *Client) SetTaskDefinition(t TaskDefinition) goerror.Error {
}

if r.Success != true {
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%v", r.Error))
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%+v", r.Error))
}

return nil
Expand Down Expand Up @@ -188,7 +188,7 @@ func (c *Client) UpdateTaskDefinition(t TaskDefinition) goerror.Error {
}

if r.Success != true {
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%v", r.Error))
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%+v", r.Error))
}

return nil
Expand Down Expand Up @@ -222,7 +222,7 @@ func (c *Client) SetWorkflowDefinition(t WorkflowDefinition) goerror.Error {
}

if r.Success != true {
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%v", r.Error))
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%+v", r.Error))
}

return nil
Expand Down Expand Up @@ -264,7 +264,7 @@ func (c *Client) UpdateWorkflowDefinition(w WorkflowDefinition) goerror.Error {
}

if r.Success != true {
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%v", r.Error))
return ErrRequestNotSuccess.WithExtendMsg(fmt.Sprintf("%+v", r.Error))
}

return nil
Expand Down

0 comments on commit 7a9642a

Please sign in to comment.