소스 검색

fix: InvokeTool response should correctly handle error messages

Yeuoly 8 달 전
부모
커밋
005a32a8d5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      internal/core/plugin_daemon/tool_service.go

+ 1 - 0
internal/core/plugin_daemon/tool_service.go

@@ -57,6 +57,7 @@ func InvokeTool(
 		for response.Next() {
 			item, err := response.Read()
 			if err != nil {
+				newResponse.WriteError(err)
 				return
 			}