Skip to content

Commit

Permalink
Ignore expected error
Browse files Browse the repository at this point in the history
* Expected error no buildable Go source files in...
  • Loading branch information
joeybloggs authored and joeybloggs committed Nov 20, 2015
1 parent 1b21288 commit eb7bad8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion misc.go
Expand Up @@ -6,6 +6,7 @@ import (
"log"
"os"
"os/exec"
"strings"
)

func executeCmd(command string, args ...string) {
Expand Down Expand Up @@ -35,7 +36,12 @@ func executeCmd(command string, args ...string) {
stdErrScanner := bufio.NewScanner(stdErr)
go func() {
for stdErrScanner.Scan() {
fmt.Printf("%s\n", stdErrScanner.Text())

txt := stdErrScanner.Text()

if !strings.Contains(txt, "no buildable Go source files in") {
fmt.Printf("%s\n", txt)
}
}
}()

Expand Down

0 comments on commit eb7bad8

Please sign in to comment.