[Groonga-commit] droonga/express-droonga at 0bbeb0a [master] Report error when failed to create client

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Oct 17 12:38:34 JST 2014


YUKI Hiroshi	2014-10-17 12:38:34 +0900 (Fri, 17 Oct 2014)

  New Revision: 0bbeb0a200bbc70ca2c6ad9ffd2adce672a068ff
  https://github.com/droonga/express-droonga/commit/0bbeb0a200bbc70ca2c6ad9ffd2adce672a068ff

  Message:
    Report error when failed to create client

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+4 -0)
===================================================================
--- test/test-utils.js    2014-10-17 12:03:38 +0900 (8a282bf)
+++ test/test-utils.js    2014-10-17 12:38:34 +0900 (60fa912)
@@ -154,6 +154,10 @@ function createClient() {
     client.socket = socket;
     deferred.call(client);
   });
+  socket.on('error', function(error) {
+    client.socket = socket;
+    deferred.fail(new Error(JSON.stringify(error)));
+  });
   return deferred;
 }
 exports.createClient = createClient;
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index