diff --git a/websockets/commands.go b/websockets/commands.go index baf07b6..51864ce 100644 --- a/websockets/commands.go +++ b/websockets/commands.go @@ -16,9 +16,10 @@ type Syncer interface { } type CommandError struct { - Name string `json:"error"` - Code int `json:"error_code"` - Message string `json:"error_message"` + Name string `json:"error"` + Code int `json:"error_code"` + Message string `json:"error_message"` + Exception string `json:"error_exception"` } type Command struct { @@ -48,7 +49,7 @@ func (c *Command) IncrementId() { } func (e *CommandError) Error() string { - return fmt.Sprintf("%s %d %s", e.Name, e.Code, e.Message) + return fmt.Sprintf("%s %d %s %s", e.Name, e.Code, e.Message, e.Exception) } func newCommand(command string) *Command {