Browse Source

minor fix

pull/6/head
rozetko 2 years ago
parent
commit
3b0b8162c7
  1. 2
      src/routes/tasks.ts

2
src/routes/tasks.ts

@ -22,7 +22,7 @@ async function getTasks(req, res) {
fs.readdir(EXPORTED_PATH, (err, items) => {
if(err) {
console.error(err);
res.status(500).send('Something went wrong');
res.status(500).send(err.message);
} else {
for(let item of items) {
let file = path.parse(item);

Loading…
Cancel
Save