This commit is contained in:
oiov
2024-08-07 16:51:58 +08:00
parent eb57b84520
commit 248f0c42ae
+1 -1
View File
@@ -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",
});