This commit is contained in:
Karol Wypchlo 2021-03-04 14:44:55 +01:00
parent 1a1ec57772
commit 525a63161e
1 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,8 @@ export default async (req, res) => {
});
res.json({ sessionId: session.id });
} catch ({ message }) {
res.status(StatusCodes.BAD_REQUEST).json({ error: { message } });
} catch (error) {
console.log(error);
res.status(StatusCodes.BAD_REQUEST).json({ error: { message: error.message } });
}
};