luis пре 7 година
родитељ
комит
0727ac7dab
1 измењених фајлова са 1 додато и 1 уклоњено
  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