Skip to content

Commit

Permalink
Fix the typo in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
qs-wang authored and liderman committed Jan 13, 2023
1 parent f242c1e commit 1810057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user-task.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (t *UserTask) Complete(query QueryUserTaskComplete) error {
func (t *UserTask) GetIdentityLinks() (*[]IdentityLink, error) {
links, err := t.api.GetIdentityLinks(t.Id)
if err != nil {
return nil, fmt.Errorf("can't complete task: %w", err)
return nil, fmt.Errorf("can't get identity links: %w", err)
}

return links, nil
Expand All @@ -100,7 +100,7 @@ func (t *UserTask) GetIdentityLinks() (*[]IdentityLink, error) {
func (t *UserTask) AddIdentityLink(query ReqIdentityLink) error {
err := t.api.AddIdentityLink(t.Id, query)
if err != nil {
return fmt.Errorf("can't complete task: %w", err)
return fmt.Errorf("can't add identity link: %w", err)
}

return nil
Expand All @@ -110,7 +110,7 @@ func (t *UserTask) AddIdentityLink(query ReqIdentityLink) error {
func (t *UserTask) DeleteIdentityLink(query ReqIdentityLink) error {
err := t.api.DeleteIdentityLink(t.Id, query)
if err != nil {
return fmt.Errorf("can't complete task: %w", err)
return fmt.Errorf("can't delete identity link: %w", err)
}

return nil
Expand Down

0 comments on commit 1810057

Please sign in to comment.