mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 21:31:23 +00:00
updated json response to match spec by @davebryson
This commit is contained in:
committed by
Ethan Buchman
parent
e0017c8a97
commit
60a1f49a5c
@ -99,7 +99,7 @@ func RecoverAndLogHandler(handler http.Handler, logger log.Logger) http.Handler
|
||||
// For the rest,
|
||||
logger.Error("Panic in RPC HTTP handler", "err", e, "stack", string(debug.Stack()))
|
||||
rww.WriteHeader(http.StatusInternalServerError)
|
||||
WriteRPCResponseHTTP(rww, types.NewRPCResponse("", nil, fmt.Sprintf("Internal Server Error: %v", e)))
|
||||
WriteRPCResponseHTTP(rww, types.RPCInternalError(""))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user