Fix error logging for io helper

This commit is contained in:
Lee 2022-11-14 04:03:16 +00:00
parent aa7369ce20
commit fa1eb5eab6
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

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