mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
fix: call of Unmarshal passed a non-pointer as second argument
This commit is contained in:
parent
dd902fe717
commit
82733d4b25
@ -109,8 +109,10 @@ func (c *socketTransport) call(handler server.Handler, request interface{}, resp
|
|||||||
responseJSONErr := json.Unmarshal(responseBytes, &serverResponse{Reply: response})
|
responseJSONErr := json.Unmarshal(responseBytes, &serverResponse{Reply: response})
|
||||||
if responseJSONErr != nil {
|
if responseJSONErr != nil {
|
||||||
// is it an error ?
|
// is it an error ?
|
||||||
remoteErr := responses.Error{}
|
var (
|
||||||
remoteErrJSONErr := json.Unmarshal(responseBytes, remoteErr)
|
remoteErr = responses.Error{}
|
||||||
|
remoteErrJSONErr = json.Unmarshal(responseBytes, &remoteErr)
|
||||||
|
)
|
||||||
if remoteErrJSONErr == nil {
|
if remoteErrJSONErr == nil {
|
||||||
returnConn(remoteErrJSONErr)
|
returnConn(remoteErrJSONErr)
|
||||||
return remoteErr
|
return remoteErr
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user