mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
better logging
This commit is contained in:
@@ -21,7 +21,7 @@ export default async function userHandler(
|
|||||||
booking = await createBooking(req.body)
|
booking = await createBooking(req.body)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// TODO: add validation for booking on same day
|
// TODO: add validation for booking on same day
|
||||||
log.error('Failed to store booking', e)
|
log.error('Failed to store booking with', e.toString())
|
||||||
res.status(500).end(`Internal Server Error...Guru is meditating...`)
|
res.status(500).end(`Internal Server Error...Guru is meditating...`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user