worker/clienterrors: omit details if empty
Omit the details field if it is null/empty.
This commit is contained in:
parent
ecc30990c7
commit
b1969ba6a6
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ type ClientErrorCode int
|
|||
type Error struct {
|
||||
ID ClientErrorCode `json:"id"`
|
||||
Reason string `json:"reason"`
|
||||
Details interface{} `json:"details"`
|
||||
Details interface{} `json:"details,omitempty"`
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue