Merge pull request #21326 from Tapad/fix-zookeeper-client-exception-type

[node-zookeeper-client] fix exception path type
This commit is contained in:
Daniel Rosenwasser
2017-11-09 00:23:37 -08:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -171,8 +171,8 @@ export class Exception {
code: number;
name: string;
path: number;
constructor(code: number, name: string, path: number);
path?: string;
constructor(code: number, name: string, path?: string);
toString(): string;
getCode(): number;
getName(): string;
@@ -255,3 +255,8 @@ const client = zookeeper.createClient(
{
new zookeeper.Event(zookeeper.Event.NODE_CREATED, 'test', '/test');
}
{
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test');
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test', '/test');
}