Fix error logging for io helper

This commit is contained in:
Lee
2022-11-14 04:03:16 +00:00
parent aa7369ce20
commit fa1eb5eab6

View File

@ -40,8 +40,10 @@ export function createFileIO(dir, fileName, bytes) {
encoding: "utf-8", encoding: "utf-8",
}, },
(err) => { (err) => {
if (err) {
console.log(err); console.log(err);
} }
}
); );
} }