Skip to content

Commit aa0742c

Browse files
author
Pivotal
committed
Revert "Remove error_description from errors"
This reverts commit e5b8252.
1 parent 4d4d0d1 commit aa0742c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

credhub/error.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package credhub
22

33
// Error provides errors for the CredHub client
44
type Error struct {
5-
Message string `json:"error"`
5+
Name string `json:"error"`
6+
Description string `json:"error_description"`
67
}
78

89
func (e *Error) Error() string {
9-
return e.Message
10+
return e.Name
1011
}

0 commit comments

Comments
 (0)