File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -482,8 +482,8 @@ async function handleInternalRequest(
482482 const errorToTransform = createTransformedErrorFromErrorInfo ( errorInfo )
483483
484484 logger . error ( `[${ requestId } ] Internal API error for ${ toolId } :` , {
485- status : ( errorToTransform as any ) . status ,
486- errorData : ( errorToTransform as any ) . data ,
485+ status : errorInfo ? .status ,
486+ errorData : errorInfo ? .data ,
487487 } )
488488
489489 throw errorToTransform
@@ -515,8 +515,8 @@ async function handleInternalRequest(
515515 const errorToTransform = createTransformedErrorFromErrorInfo ( errorInfo )
516516
517517 logger . error ( `[${ requestId } ] Internal API error for ${ toolId } :` , {
518- status : ( errorToTransform as any ) . status ,
519- errorData : ( errorToTransform as any ) . data ,
518+ status : errorInfo ? .status ,
519+ errorData : errorInfo ? .data ,
520520 } )
521521
522522 throw errorToTransform
You can’t perform that action at this time.
0 commit comments