rework debug/stdout flags

main
Ben Grewell 3 years ago
parent 6ac9e0775f
commit e184f7cc63

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

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

Loading…
Cancel
Save