We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f988a50 commit df82edbCopy full SHA for df82edb
packages/docs/src/app/(pages)/_landing/dependents/dependents.tsx
@@ -1,9 +1,15 @@
1
import { cn } from '@/src/lib/utils'
2
import Image from 'next/image'
3
-import { crawlDependents } from './crawler'
+import { Result, crawlDependents } from './crawler'
4
5
export async function DependentsSection() {
6
- const dependents = await crawlDependents()
+ let dependents: Result[] = []
7
+ try {
8
+ dependents = await crawlDependents()
9
+ } catch (error) {
10
+ console.error(error)
11
+ return <section className="text-red-500">{String(error)}</section>
12
+ }
13
return (
14
<section className="container">
15
<h2 className="mb-8 text-center text-3xl font-bold tracking-tighter dark:text-white md:text-4xl xl:text-5xl">
0 commit comments