throw errors in utils and helpers

This commit is contained in:
Viet Huynh
2023-11-19 17:48:37 +07:00
parent 70a2dfa89f
commit b364df7864
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -87,5 +87,6 @@ export const readFile = async (filePath, onLine) => {
console.error(
`Error occurred while reading ${basename(filePath)} - ${err.toString()}`
);
throw err;
}
};