Make Error.Error() return the post-arg-substitution Message
Missed this during the removal of the args property Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
parent
4e72e13d36
commit
aae59d54ef
2 changed files with 6 additions and 1 deletions
|
@ -106,7 +106,7 @@ func (e Error) ErrorCode() ErrorCode {
|
|||
func (e Error) Error() string {
|
||||
return fmt.Sprintf("%s: %s",
|
||||
strings.ToLower(strings.Replace(e.Code.String(), "_", " ", -1)),
|
||||
e.Code.Message())
|
||||
e.Message)
|
||||
}
|
||||
|
||||
// WithDetail will return a new Error, based on the current one, but with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue