Merge in Adam's bug case.
[awesomized/libmemcached] / libmemcached / memcached_strerror.c
index b25bdb362d4b961ce6ed6acfb344ed06edabb7f6..5a8b36958dbbc237129f86bcefe09282034e39de 100644 (file)
@@ -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,6 +78,8 @@ 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: