-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: Mcp error raise #4366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Mcp error raise #4366
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -249,7 +249,6 @@ const handleDrop = (draggingNode: any, dropNode: any, dropType: string, ev: Drag | |
| .putFolder(dragData.id, props.source, obj, loading) | ||
| .then(() => { | ||
| MsgSuccess(t('common.saveSuccess')) | ||
| emit('refreshTree') | ||
| }) | ||
| .catch(() => { | ||
| emit('refreshTree') | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code you provided seems to be related to handling drag and drop operations, likely for managing file trees within an application. Here are some observations and potential improvements: Irregularities Found:
Potential Issues:
Optimization Suggestions:
By making these optimizations, the code becomes cleaner, potentially more maintainable, and easier to debug. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code you provided is generally structured well, but there are a few areas where improvements and corrections can be made:
Improvements and Corrections
Exception Handling:
MultiServerMCPClienterrors specifically.Tool Calls Info Storage:
Code Organization:
Exception Group Handling:
Here's an improved version of the code with these considerations:
Key Changes:
MultiServerMCPClientErrorspecifically.Let me know if you need further adjustments!