diff --git a/routes/exchange.go b/routes/exchange.go index 3b7dda31..b94169c2 100644 --- a/routes/exchange.go +++ b/routes/exchange.go @@ -1447,7 +1447,12 @@ func (fes *APIServer) APIBlock(ww http.ResponseWriter, rr *http.Request) { return } if blockMsg == nil { - APIAddError(ww, fmt.Sprintf("APIBlockRequest: Block with hash %v not found", blockHash)) + APIAddError(ww, fmt.Sprintf("APIBlockRequest: Block with hash %v not found: %v", blockHash)) + return + } + + if blockNode == nil { + APIAddError(ww, fmt.Sprintf("APIBlockRequest: Block node with hash %v not found", blockHash, blockRequest)) return }