瀏覽代碼

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
 			}