simplify requestPVE args
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import { readFileSync } from "fs";
|
||||
import { exit } from "process";
|
||||
export default (path) => {
|
||||
return JSON.parse(readFileSync(path));
|
||||
try {
|
||||
return JSON.parse(readFileSync(path));
|
||||
}
|
||||
catch (e) {
|
||||
console.log(`Error: ${path} was not found.`);
|
||||
exit(1);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user