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})
|
||||
if responseJSONErr != nil {
|
||||
// is it an error ?
|
||||
remoteErr := responses.Error{}
|
||||
remoteErrJSONErr := json.Unmarshal(responseBytes, remoteErr)
|
||||
var (
|
||||
remoteErr = responses.Error{}
|
||||
remoteErrJSONErr = json.Unmarshal(responseBytes, &remoteErr)
|
||||
)
|
||||
if remoteErrJSONErr == nil {
|
||||
returnConn(remoteErrJSONErr)
|
||||
return remoteErr
|
||||
|
||||
Loading…
Reference in New Issue
Block a user