memcap works, though it does nothing useful at the moment :)
[awesomized/libmemcached] / lib / memcached_strerror.c
index 335ec26c83dd19dd9e0ddf2815963b2870f8cba7..c917e96e7e3c8dd58c71df96a8c81751761c0238 100644 (file)
@@ -1,4 +1,4 @@
-#include <memcached.h>
+#include "common.h"
 
 char *memcached_strerror(memcached_st *ptr, memcached_return rc)
 {
@@ -42,7 +42,17 @@ char *memcached_strerror(memcached_st *ptr, memcached_return rc)
     return "PARTIAL READ";
   case MEMCACHED_SOME_ERRORS:
     return "SOME ERRORS WERE REPORTED";
+  case MEMCACHED_NO_SERVERS:
+    return "NO SERVERS DEFINED";
+  case MEMCACHED_END:
+    return "SERVER END";
+  case MEMCACHED_DELETED:
+    return "SERVER DELETE";
+  case MEMCACHED_VALUE:
+    return "SERVER VALUE";
+  case MEMCACHED_MAXIMUM_RETURN:
+    return "Gibberish returned!";
+  default:
+    return "Gibberish returned!";
   };
-
-  return "COMPLETELY UNKNOWN ERROR, SOMEONE FORGOT TO UPDATE ERROR MESSAGES";
 }