rpc: make getapplicationlog error more deterministic

This commit is contained in:
Anna Shaleva 2020-07-06 14:39:38 +03:00
parent 29f1e646ed
commit 1755ce10ac

View file

@ -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