Skip to content

Commit c93f252

Browse files
committed
refactor(readme): replace MCPError with AppError in error handling example
1 parent 6955172 commit c93f252

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ moment** of failure within your callback.
187187
// 🟢 The ResultAsync Way (Best Practice)
188188
return ResultAsync.fromPromise(
189189
client.connect(url),
190-
(error) => MCPError.CONNECTION_FAILED(url).with({ cause: error })
190+
(error) => AppError.CONNECTION_FAILED(url).with({ cause: error })
191191
);
192192
```
193193
🎯 The "Crime Scene": Callback Freedom

0 commit comments

Comments
 (0)