未验证 提交 936c76b0 编写于 作者: A Alessandro Arzilli 提交者: GitHub

cmd/dlv: print error when build fails in 'dlv test' (#2127)

Fixes #2126
上级 01659754
......@@ -586,6 +586,7 @@ func testCmd(cmd *cobra.Command, args []string) {
dlvArgs, targetArgs := splitArgs(cmd, args)
err = gobuild.GoTestBuild(debugname, dlvArgs, buildFlags)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
return 1
}
defer gobuild.Remove(debugname)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册