luis hace 7 años
padre
commit
0727ac7dab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      clientctx.go

+ 1 - 1
clientctx.go

@@ -32,7 +32,7 @@ type CallObj struct {
 	// Payload
 	Params   []interface{} `json:"params"`
 	Response interface{}   `json:"response"`
-	Error    string        `json:"error"`
+	Error    string        `json:"error,omitempty"`
 }
 
 // DataObj common structure for dymanic json object