Fixed err log in filesystem unlink
This commit is contained in:
parent
cc6feb3171
commit
1445f7341e
@ -59,9 +59,9 @@ export default class FileSystemService {
|
|||||||
(await node.children).map((child) => this.delete(child))
|
(await node.children).map((child) => this.delete(child))
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
unlink(`files/${node.id}`, (err) =>
|
unlink(`files/${node.id}`, (err) => {
|
||||||
console.error(`Error while deleting ${node.id}`, err)
|
if (err) console.error(`Error while deleting ${node.id}`, err);
|
||||||
);
|
});
|
||||||
await this.inodeRepo.remove(node);
|
await this.inodeRepo.remove(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user