Skip to content

Commit

Permalink
Update core/appeal/service.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rahmat Hidayat <rahmatramahidayat@gmail.com>
  • Loading branch information
singhvikash11 and rahmatrhd committed Aug 11, 2022
1 parent 09635a1 commit 4ab82f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/appeal/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func validateAppealDurationConfig(appeal *domain.Appeal, policy *domain.Policy)
}
}

return fmt.Errorf("%s - %v", appeal.Options.Duration, ErrOptionsDurationNotFound)
return fmt.Errorf("%w: %s", ErrOptionsDurationNotFound, appeal.Options.Duration)
}

// MakeAction Approve an approval step
Expand Down

0 comments on commit 4ab82f7

Please sign in to comment.