mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
add error when patching failed
This commit is contained in:
@@ -34,6 +34,7 @@ export default async function userHandler(
|
||||
const booking = await patchBooking(uuid, req.body);
|
||||
res.status(200).json(booking)
|
||||
} catch (error) {
|
||||
console.error('failed patch booking', error);
|
||||
res.status(400).end(`Failed to save booking: ${error.message}`)
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user