🧹 Error cleanup

This commit is contained in:
ful1e5 2020-08-31 18:28:04 +05:30
parent 5158431d97
commit 24aaa0a993

View file

@ -6,9 +6,7 @@ const writeSchemaData = (location: string, content: string) => {
mkdir(location, { recursive: true }, () => {});
}
});
writeFile(location, content, "utf-8", () => {
throw new Error(`Oops Something went wrong with Schema Generator`);
});
writeFile(location, content, "utf-8", () => {});
};
export { writeSchemaData };