Use the throwable object in $context['exception'] (#207)
* Use the throwable object in $context['excpetion'] * add changelog * remove 'exception' from context * revert debug
This commit is contained in:
parent
abd0ddf13d
commit
7f02285753
1 changed files with 16 additions and 8 deletions
|
|
@ -91,7 +91,7 @@ final class CallToolHandler implements RequestHandlerInterface
|
|||
} catch (\Throwable $e) {
|
||||
$this->logger->error('Unhandled error during tool execution', [
|
||||
'name' => $toolName,
|
||||
'exception' => $e->getMessage(),
|
||||
'exception' => $e,
|
||||
]);
|
||||
|
||||
return Error::forInternalError('Error while executing tool', $request->getId());
|
||||
|
|
|
|||
Loading…
Reference in a new issue