refactor: added console for error (#1340)

This commit is contained in:
Dhruwang Jariwala
2023-10-20 16:18:20 +05:30
committed by GitHub
parent c2c27a7527
commit 7fd89daca9

View File

@@ -67,7 +67,10 @@ export async function GET(req: NextRequest) {
key,
});
return NextResponse.redirect(`${WEBAPP_URL}/environments/${environmentId}/integrations/airtable`);
} catch (error) {}
} catch (error) {
console.error(error);
NextResponse.json({ Error: error }, { status: 500 });
}
NextResponse.json({ Error: "unknown error occurred" }, { status: 400 });
}