X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_strerror.c;h=5a8b36958dbbc237129f86bcefe09282034e39de;hb=20d35eaf6a89d60bda627576678d97885b7fca91;hp=e643db2b7422a2664558411cecd2044703cfcd69;hpb=73ab14c882ca0f2b7112ab4cd9dfb16d5f41916e;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached_strerror.c b/libmemcached/memcached_strerror.c index e643db2b..5a8b3695 100644 --- a/libmemcached/memcached_strerror.c +++ b/libmemcached/memcached_strerror.c @@ -1,6 +1,6 @@ #include "common.h" -char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return rc) +const char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return rc) { switch (rc) { @@ -55,7 +55,7 @@ char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_re case MEMCACHED_STAT: return "STAT VALUE"; case MEMCACHED_ITEM: - return "ITEM"; + return "ITEM VALUE"; case MEMCACHED_ERRNO: return "SYSTEM ERROR"; case MEMCACHED_FAIL_UNIX_SOCKET: @@ -78,9 +78,11 @@ char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_re return "SERVER IS MARKED DEAD"; case MEMCACHED_UNKNOWN_STAT_KEY: return "ENCOUNTERED AN UNKNOWN STAT KEY"; + case MEMCACHED_E2BIG: + return "ITEM TOO BIG"; case MEMCACHED_MAXIMUM_RETURN: return "Gibberish returned!"; default: return "Gibberish returned!"; - }; + } }