Update to printout where things are going wrong.
[awesomized/libmemcached] / libtest / framework.cc
index 6cca8450abcbcffbc4a7672518acb96a668c0f0f..9fef09b2485e18ed401b2a112be7c0fa27961f44 100644 (file)
@@ -34,7 +34,7 @@
  *
  */
 
-#include <config.h>
+#include "libtest/yatlcon.h"
 
 #include <libtest/common.h>
 #include <libtest/collection.h>
@@ -118,8 +118,7 @@ void Framework::exec()
 
     _total++;
 
-    try
-    {
+    try {
       switch ((*iter)->exec())
       {
       case TEST_FAILURE:
@@ -145,7 +144,7 @@ void Framework::exec()
     catch (libtest::disconnected& e)
     {
       _failed++;
-      stream::cerr(e.file(), e.line(), e.func()) << "Unhandled disconnection occurred: " << e.mesg();
+      Error << "Unhandled disconnection occurred:" << e.what();
       throw;
     }
     catch (...)