Skip to content

Commit

Permalink
fix(gmock): compat for multi-extend-class.
Browse files Browse the repository at this point in the history
  • Loading branch information
galenlin committed Mar 29, 2024
1 parent a0564ce commit 6353c46
Show file tree
Hide file tree
Showing 3 changed files with 614 additions and 522 deletions.
6 changes: 5 additions & 1 deletion src/class_creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ export class class_creator
if (!fs.existsSync(config_file)) {
return undefined;
}
return JSON.parse(fs.readFileSync(config_file).toString());
try {
return JSON.parse(fs.readFileSync(config_file).toString());
} catch (error) {
return undefined;
}
}


Expand Down
Loading

0 comments on commit 6353c46

Please sign in to comment.