|
|
@@ -161,5 +161,14 @@ serve(wrapHandler('shoprenter-products', async (req) => {
|
|
|
}),
|
|
|
{ status: 200, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
|
|
|
)
|
|
|
-
|
|
|
+ } catch (error) {
|
|
|
+ console.error('[ShopRenter Products] Error:', error)
|
|
|
+ return new Response(
|
|
|
+ JSON.stringify({
|
|
|
+ error: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
|
+ success: false
|
|
|
+ }),
|
|
|
+ { status: 500, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
|
|
|
+ )
|
|
|
+ }
|
|
|
}))
|