From 1755ce10ac200f9f676f67b3fb2678dcb35db128 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 6 Jul 2020 14:39:38 +0300 Subject: [PATCH] rpc: make `getapplicationlog` error more deterministic --- pkg/rpc/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpc/server/server.go b/pkg/rpc/server/server.go index 03399574c..edea05edf 100644 --- a/pkg/rpc/server/server.go +++ b/pkg/rpc/server/server.go @@ -488,7 +488,7 @@ func (s *Server) getApplicationLog(reqParams request.Params) (interface{}, *resp appExecResult, err := s.chain.GetAppExecResult(txHash) if err != nil { - return nil, response.NewRPCError("Unknown transaction", "", nil) + return nil, response.NewRPCError("Unknown transaction", "", err) } return result.NewApplicationLog(appExecResult), nil