import { unstable_rethrow } from 'next/navigation';

/** Report a handled failure, while letting Next.js control flow escape the boundary. */
export function reportApiError(error: unknown, context: string): void {
  unstable_rethrow(error);
  console.error(context, error);
}
