On 02/03/2012 02:30 AM, Russ Allbery wrote: > The code in Shibboleth is all along these lines: > > } else if (rv == MEMCACHED_ERRNO) { > // System error > string error = string("Memcache::deleteMemcache() SYSTEM ERROR: ") + > string(strerror(memc->cached_errno)); > log.error(error); > throw IOException(error); > } else { > string error = string("Memcache::deleteMemcache() Problems: ") + > memcached_strerror(memc, rv); > log.error(error); > throw IOException(error); > } > > What is now the correct way of handling MEMCACHED_ERRNO returns if one > wants to include the strerror() results of errno?
According to [0] it should be: if (rv == MEMCACHED_ERRNO) { // System error string error = string("Memcache::deleteMemcache() SYSTEM ERROR: ") + string(memcached_last_error_message(memc)); log.error(error); throw IOException(error); } [0] http://docs.libmemcached.org/libmemcached/memcached_last_error_message.html HTH, -- Michael Fladischer <mich...@fladi.at>
signature.asc
Description: This is a digitally signed message part