Skip to content

Commit 0140590

Browse files
committed
Add error.js
1 parent 76b48bd commit 0140590

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/examples/error.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"use client";
2+
3+
export default function Error({error}) {
4+
console.error("Server RSC Error:", error, error.digest);
5+
return <div>Server Error</div>;
6+
}

0 commit comments

Comments
 (0)