Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
display the client error on operation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Sep 6, 2012
1 parent 10c27d5 commit aa693e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/umemcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ PyObject *Client_command(PyClient *self, PFN_COMMAND cmd, PyObject *args)
{
if (!PyErr_Occurred())
{
return PyErr_Format(PyExc_RuntimeError, "Operation failed");
return PyErr_Format(PyExc_RuntimeError, "Operation failed %s", self->client->getError());
}

return NULL;
Expand Down

0 comments on commit aa693e3

Please sign in to comment.