rework debug/stdout flags

main
Ben Grewell 3 years ago
parent 6ac9e0775f
commit e184f7cc63

@ -5,6 +5,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/client.go" beforeDir="false" afterPath="$PROJECT_DIR$/client.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />

@ -520,9 +520,15 @@ func (c *Client) Start() (err error) {
} else {
testOutput, err := ioutil.ReadAll(c.outputStream)
if err != nil {
if c.Debug {
fmt.Println(err.Error())
}
return
}
c.report, err = Loads(string(testOutput))
if err != nil && c.Debug {
fmt.Println(err.Error())
}
}
exitCode := <-exit
c.exitCode = &exitCode

Loading…
Cancel
Save