Convert getPathFind and add unit test

This commit is contained in:
Chris Clark
2015-06-30 18:56:10 -07:00
parent 077a53475d
commit 09b10d3f2c
13 changed files with 627 additions and 159 deletions

View File

@@ -38,7 +38,14 @@ function composeAsync(wrapper, callback) {
callback(error);
return;
}
callback(null, wrapper(data));
let result;
try {
result = wrapper(data);
} catch (exception) {
callback(exception);
return;
}
callback(null, result);
};
}