Skip to content

Commit 677520b

Browse files
committed
fix: error messages
1 parent 460052e commit 677520b

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/components/Chat/CopilotInterface.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,8 @@ export function CopilotInterface({
116116
]
117117
},
118118
])
119-
// Optionally log the error to console or external service
120-
// e.g., console.error("AI Error:", error);
121-
// If you have a custom error handling function, call it here
122-
// customErrorHandler?.(error)
123-
// For example, if you want to send an error message to the chat:
124-
// This assumes chatHook has a method to send messages
125-
// If not, you can handle it differently based on your chat implementation
126-
// e.g., chatHook?.sendMessage({ text: error.message })
127-
// Or simply log it for now
128-
// console.error("Error in CopilotInterface:", error);
129-
console.log(error.code, error.message);
119+
120+
console.error("Error in CopilotInterface:", error);
130121
},
131122
// Add any default AI configuration here
132123
// e.g., apiKey: process.env.AI_API_KEY,

0 commit comments

Comments
 (0)