Skip to content

Commit

Permalink
handle notSynced in gRPC code
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 committed Jun 22, 2020
1 parent 1033724 commit 022605f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ripple/rpc/handlers/AccountTx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ populateProtoResponse(
{
status = {grpc::StatusCode::NOT_FOUND, error.message()};
}
else if (error.toErrorCode() == rpcNOT_SYNCED)
{
status = {grpc::StatusCode::FAILED_PRECONDITION, error.message()};
}
else
{
status = {grpc::StatusCode::INVALID_ARGUMENT, error.message()};
Expand Down

0 comments on commit 022605f

Please sign in to comment.