Update libtest.
[awesomized/libmemcached] / libtest / cmdline.cc
index f6d1e3d65fae37624b283e4f5f4d2598bd18ac0f..cbc9d0a6d66a7e138fa38f2fcc197ce1923e3bd4 100644 (file)
@@ -244,8 +244,9 @@ Application::error_t Application::run(const char *args[])
   stdout_fd.close(Application::Pipe::WRITE);
   stderr_fd.close(Application::Pipe::WRITE);
 
-  if (spawn_ret)
+  if (spawn_ret != 0)
   {
+    Error << strerror(spawn_ret) << "(" << spawn_ret << ")";
     _pid= -1;
     return Application::INVALID;
   }