Skip to content

Commit

Permalink
Adopt new nan module for 6.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlavin committed Jun 25, 2016
1 parent 61b5789 commit 82d1675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "zookeeper"
,"description": "apache zookeeper client (zookeeper async API >= 3.4.0)"
,"version": "3.4.8-1"
,"version": "3.4.8-2"
,"author": "Yuri Finkelstein <yurif2003@yahoo.com>"
,"contributors": [
"Yuri Finkelstein <yurif2003@yahoo.com>"
Expand All @@ -21,7 +21,7 @@
,"keywords": ["apache", "zookeeper", "client"]
,"dependencies": {
"async": "~0.2.6"
,"nan": "~2.0.9"
,"nan": "~2.3.5"
,"underscore": "*"
}
,"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/node-zk.cpp
Expand Up @@ -386,7 +386,7 @@ class ZooKeeper: public Nan::ObjectWrap {
assert(zk);

if (!zk->realInit(*_hostPort, session_timeout, &local_client)) {
RETURN_VALUE(info, Nan::NanErrnoException(errno, "zookeeper_init", "failed to init", __FILE__));
RETURN_VALUE(info, Nan::ErrnoException(errno, "zookeeper_init", "failed to init", __FILE__));
} else {
RETURN_THIS(info);
}
Expand Down

0 comments on commit 82d1675

Please sign in to comment.