Skip to content

Commit ee50809

Browse files
committed
fix: standardize error message to 'INTERNAL_ERROR' in MCPProtocol
1 parent 0da2b2c commit ee50809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Protocol/MCPProtocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function handleMessage(string $clientId, array $message): ProcessMessageD
138138

139139
$jsonErrorResource = new JsonRpcErrorResource(
140140
exception: new JsonRpcErrorException(
141-
message: $e->getMessage() ?: 'INTERNAL_ERROR',
141+
message: 'INTERNAL_ERROR',
142142
code: JsonRpcErrorCode::INTERNAL_ERROR,
143143
data: [
144144
'exception' => $e::class,

0 commit comments

Comments
 (0)