Update app/api/schema/route.ts
Browse files- app/api/schema/route.ts +4 -1
app/api/schema/route.ts
CHANGED
|
@@ -137,7 +137,10 @@ export async function POST(request: Request) {
|
|
| 137 |
} catch (error) {
|
| 138 |
console.error("Error generating schema:", error);
|
| 139 |
return NextResponse.json(
|
| 140 |
-
{
|
|
|
|
|
|
|
|
|
|
| 141 |
{ status: 500 }
|
| 142 |
);
|
| 143 |
}
|
|
|
|
| 137 |
} catch (error) {
|
| 138 |
console.error("Error generating schema:", error);
|
| 139 |
return NextResponse.json(
|
| 140 |
+
{
|
| 141 |
+
error:
|
| 142 |
+
"Failed to generate schema, open a thread in discussions, could be be a rate limit issue.",
|
| 143 |
+
},
|
| 144 |
{ status: 500 }
|
| 145 |
);
|
| 146 |
}
|