MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / _error_callback

Method _error_callback

client/tool/gometalinter.py:305–314  ·  view source on GitHub ↗

异常捕获 :param line: :return:

(self, line)

Source from the content-addressed store, hash-verified

303 return dirs
304
305 def _error_callback(self, line):
306 """
307 异常捕获
308 :param line:
309 :return:
310 """
311 self.print_log(line)
312
313 if line.find("gometalinter: error: user: Current not implemented on linux/amd64") != -1:
314 raise AnalyzeTaskError("检查GOPATH是否为空,若为空,则麻烦设置GOPATH指向项目依赖路径,然后重试。")
315
316 def check_tool_usable(self, tool_params):
317 """

Callers

nothing calls this directly

Calls 2

AnalyzeTaskErrorClass · 0.90
print_logMethod · 0.45

Tested by

no test coverage detected