X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2Fcommon%2Fchecks.hpp;fp=src%2Fbin%2Fcommon%2Fchecks.hpp;h=470b4b4a9e1da73701e46abdc7d2da4adc7c2d87;hb=2c5690e3e3384b98c1b4dc78c076ae9d59eb7d22;hp=e46fffbea65107c9c2bb425755a334807b57a6ff;hpb=8734a061ef5bafbbe46523a0729898008d479dbf;p=awesomized%2Flibmemcached diff --git a/src/bin/common/checks.hpp b/src/bin/common/checks.hpp index e46fffbe..470b4b4a 100644 --- a/src/bin/common/checks.hpp +++ b/src/bin/common/checks.hpp @@ -58,7 +58,8 @@ bool check_return(const client_options &opt, memcached_st &memc, const char *key if (!opt.isset("quiet")) { if (MEMCACHED_NOTFOUND == rc) { if (opt.isset("verbose")) { - std::cerr << "Could not find key '" << key << "'.\n"; + std::cerr << "Could not find key '" << key + << "': " << memcached_strerror(&memc, rc) << "\n";; } } else { std::cerr << "Fatal error for key '" << key