Skip to content

Commit

Permalink
v0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
brentlintner committed Jun 7, 2017
1 parent 1260b2e commit 97008fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/similar/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ var parse_methods_and_classes = function (root_node, filepath) {
var find_similar_methods_and_classes = function (filepaths, opts) {
return _.flatMap(filepaths, function (filepath) {
var code = fs.readFileSync(filepath).toString();
var node = astify(code, opts);
var node;
try {
node = astify(code, opts);
}
catch (err) {
throw new Error("in " + filepath + "\n\n" + err.stack);
}
return parse_methods_and_classes(node, filepath);
});
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "synt",
"version": "0.4.3",
"version": "0.4.4",
"description": "Find similar functions and classes in your JavaScript/TypeScript code",
"author": "Brent Lintner <[email protected]>",
"repository": {
Expand Down

0 comments on commit 97008fd

Please sign in to comment.