error al eliminar archivo no existente

This commit is contained in:
2021-03-01 19:15:29 -06:00
parent 2011018794
commit 699fa144cd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ const get = async (body) => {
try {
fs.unlinkSync(path);
} catch (err) {
throw new Error(err);
console.log(err);
}
fs.appendFile(path, convertArrayToCSV(data), (err) => {
if (err) throw new Error(err);
@@ -43,7 +43,7 @@ const get = async (body) => {
try {
fs.unlinkSync(path);
} catch (err) {
throw new Error(err);
console.log(err);
}
fs.appendFile(path, convertArrayToCSV(data), (err) => {
if (err) throw new Error(err);