nicer error msg
authorChristian Grothoff <christian@grothoff.org>
Fri, 7 May 2010 06:54:15 +0000 (06:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 7 May 2010 06:54:15 +0000 (06:54 +0000)
src/testing/test_testing.c

index 4a014de6602b109d5533ee7caaeccb86fce5c81b..925579a71784bf327300fc2f4731eb36a47c83db 100644 (file)
@@ -31,7 +31,12 @@ static int ok;
 static void
 end_cb (void *cls, const char *emsg)
 {
-  GNUNET_assert (emsg == NULL);
+  if (emsg != NULL)
+    {
+      fprintf (stderr, "Error terminaing daemon: `%s'\n",
+              emsg);
+      return;
+    }
 #if VERBOSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Daemon terminated, will now exit.\n");
 #endif