+
+
+
+
+ Workflow Error
+
+ This workflow encountered an error and is currently unavailable. Please try again
+ later or create a new workflow.
+
+
+
+ )
+ )
+ }
+
+ return this.props.children
+ }
+}
diff --git a/app/w/error.tsx b/app/w/error.tsx
new file mode 100644
index 0000000000..a2f876dfcb
--- /dev/null
+++ b/app/w/error.tsx
@@ -0,0 +1,38 @@
+'use client'
+
+import { useEffect } from 'react'
+import { BotIcon } from 'lucide-react'
+import { Card } from '@/components/ui/card'
+
+interface ErrorProps {
+ error: Error & { digest?: string }
+ reset: () => void
+}
+
+export default function Error({ error, reset }: ErrorProps) {
+ useEffect(() => {
+ // Optionally log the error to an error reporting service
+ console.error('Workflow error:', error)
+ }, [error])
+
+ return (
+