Add detailed error message to getOrCreateCart for debugging
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
16a3b7c9a3
commit
152ac572c7
1 changed files with 5 additions and 5 deletions
|
|
@ -37,7 +37,7 @@
|
|||
UUID,
|
||||
UserID,
|
||||
BusinessID,
|
||||
BusinessDeliveryMultiplier,
|
||||
DeliveryMultiplier,
|
||||
OrderTypeID,
|
||||
DeliveryFee,
|
||||
StatusID,
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
"UUID": qOrder.UUID ?: "",
|
||||
"UserID": val(qOrder.UserID),
|
||||
"BusinessID": val(qOrder.BusinessID),
|
||||
"DeliveryMultiplier": val(qOrder.BusinessDeliveryMultiplier),
|
||||
"DeliveryMultiplier": val(qOrder.DeliveryMultiplier),
|
||||
"OrderTypeID": val(qOrder.OrderTypeID),
|
||||
"DeliveryFee": val(qOrder.DeliveryFee),
|
||||
"BusinessDeliveryFee": val(businessDeliveryFee),
|
||||
|
|
@ -317,7 +317,7 @@
|
|||
UUID,
|
||||
UserID,
|
||||
BusinessID,
|
||||
BusinessDeliveryMultiplier,
|
||||
DeliveryMultiplier,
|
||||
OrderTypeID,
|
||||
DeliveryFee,
|
||||
StatusID,
|
||||
|
|
@ -387,9 +387,9 @@
|
|||
<cfcatch>
|
||||
<cfset apiAbort({
|
||||
"OK": false,
|
||||
"ERROR": "server_error",
|
||||
"ERROR": "server_error: " & cfcatch.message,
|
||||
"MESSAGE": "DB error creating cart",
|
||||
"DETAIL": cfcatch.message
|
||||
"DETAIL": cfcatch.detail
|
||||
})>
|
||||
</cfcatch>
|
||||
</cftry>
|
||||
|
|
|
|||
Reference in a new issue