From 3b0b8162c72e386f6a84ef91394fab70a200a02d Mon Sep 17 00:00:00 2001 From: rozetko Date: Wed, 18 Jan 2023 18:45:42 +0300 Subject: [PATCH] minor fix --- src/routes/tasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/tasks.ts b/src/routes/tasks.ts index fa0d902..1d3c702 100644 --- a/src/routes/tasks.ts +++ b/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);