fix(platform): rename "msg" field to "message" for Error json

pull/10616/head
Michael Desa 2018-12-19 13:13:15 -05:00
parent 86b10a75c9
commit 9d1ed7a8d6
1 changed files with 4 additions and 4 deletions

View File

@ -49,10 +49,10 @@ const (
// Err: err,
// }.
type Error struct {
Code string `json:"code"` // Code is the machine-readable error code.
Msg string `json:"msg,omitempty"` // Msg is a human-readable message.
Op string `json:"op,omitempty"` // Op describes the logical code operation during error.
Err error `json:"err,omitempty"` // Err is a stack of additional errors.
Code string `json:"code"` // Code is the machine-readable error code.
Msg string `json:"message,omitempty"` // Msg is a human-readable message.
Op string `json:"op,omitempty"` // Op describes the logical code operation during error.
Err error `json:"error,omitempty"` // Err is a stack of additional errors.
}
// Error implement the error interface by outputing the Code and Err.