From 248f0c42ae6e0336ae30fe6d1d045f381fb24ea8 Mon Sep 17 00:00:00 2001 From: oiov Date: Wed, 7 Aug 2024 16:51:58 +0800 Subject: [PATCH] chore --- app/api/scraping/meta/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/scraping/meta/route.ts b/app/api/scraping/meta/route.ts index 7b83764..5cd432a 100644 --- a/app/api/scraping/meta/route.ts +++ b/app/api/scraping/meta/route.ts @@ -73,7 +73,7 @@ export async function GET(req: Request) { }); } catch (error) { console.log(error); - return Response.json(error?.statusText || error, { + return Response.json("An error occurred", { status: error.status || 500, statusText: error.statusText || "Server error", });