Fix error logging for io helper
This commit is contained in:
parent
aa7369ce20
commit
fa1eb5eab6
@ -40,7 +40,9 @@ export function createFileIO(dir, fileName, bytes) {
|
||||
encoding: "utf-8",
|
||||
},
|
||||
(err) => {
|
||||
console.log(err);
|
||||
if (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user