Skip to content

Commit

Permalink
Add error info to fowrard response toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed Dec 27, 2023
1 parent 7e8717c commit d5a7e3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ZooKeeper/ZooKeeperCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ struct ZooKeeperNewSessionResponse final : ZooKeeperResponse
writeText(", session_id: " + std::to_string(session_id), out);
writeText(", server_id: " + std::to_string(server_id), out);
writeText(", success: " + std::to_string(success), out);
writeText(", error: " + String(errorMessage(error)), out);
return out.str();
}
};
Expand Down Expand Up @@ -797,6 +798,7 @@ struct ZooKeeperUpdateSessionResponse final : ZooKeeperResponse
writeText(", session_id: " + std::to_string(session_id), out);
writeText(", server_id: " + std::to_string(server_id), out);
writeText(", success: " + std::to_string(success), out);
writeText(", error: " + String(errorMessage(error)), out);
return out.str();
}
};
Expand Down

0 comments on commit d5a7e3e

Please sign in to comment.