Merge pull request +6561 from c9/fix-lua-test

make test redis more robust
pull/39/head^2
Tim Robinson 2015-03-11 17:04:04 +01:00
commit c1252d66c0
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -29,7 +29,7 @@
"msgpack-js": "~0.1.1",
"msgpack-js-browser": "~0.1.4",
"nak": "",
"netutil": "~0.0.1",
"netutil": "~0.0.2",
"optimist": "~0.6.0",
"qs": "0.6.6",
"rusha": "~0.7.2",

Wyświetl plik

@ -33,11 +33,10 @@ function plugin(options, imports, register) {
client = clients[client];
client._send = client.send;
client.send = function(exception, customData, callback, request) {
var ex = exception;
if (!exception.stack)
ex = new Error(exception.message || exception);
exception = new Error(exception.message || exception);
return this._send(ex, customData, callback, request);
return this._send.apply(this, arguments);
};
}