Skip to content

Commit

Permalink
chore: change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
KannuSingh committed Jan 23, 2025
1 parent e1070f1 commit 35df899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async function handlePost(request: Request) {
return NextResponse.json(
{
status: 'error',
message: `Internal error occurred [${errorCode}]`
message: `Unable to process the request [${errorCode}]`
},
{ status: 500 }
);
Expand Down
2 changes: 1 addition & 1 deletion advanced/dapps/chat-demo-agent/src/context/ChatContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const ChatProvider: React.FC<{ children: React.ReactNode }> = ({ children
dispatch({ type: 'ADD_MESSAGE', payload: botResponse });
} catch (error) {
const errorMessage = createMessage(
`Error: ${error instanceof Error ? error.message : 'Some error occurred'}`,
`Error: ${error instanceof Error ? error.message : 'Unable to process the request'}`,
'system',
'error'
);
Expand Down

0 comments on commit 35df899

Please sign in to comment.