Remove console error suppression in toApiErrorResponse for improved error logging
This commit is contained in:
@@ -93,7 +93,6 @@ export function toApiErrorResponse(error: unknown): NextResponse {
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('[api]', error);
|
||||
return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user