luis 7 anni fa
parent
commit
0727ac7dab
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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