Permalink
Browse files

temporary "fix" for grpc-go 606

Signed-off-by: Peter Edge <peter.edge@gmail.com>
  • Loading branch information...
peter-edge committed Mar 25, 2016
1 parent 3834890 commit ccdd8b56c951fc720ceb9e0fa16223ff33f7a18e
Showing with 4 additions and 1 deletion.
  1. +4 −1 server_compiler.go
View
@@ -1,8 +1,10 @@
package protoeasy
import (
"errors"
"fmt"
"path/filepath"
"strings"
"go.pedge.io/pkg/exec"
)
@@ -35,7 +37,8 @@ func (c *serverCompiler) Compile(dirPath string, outDirPath string, compileOptio
}
for _, command := range commands {
if err := pkgexec.Run(command.Arg...); err != nil {
return nil, err
// TODO(pedge): temporary until https://github.com/grpc/grpc-go/issues/606 is fixed
return nil, errors.New(strings.Replace(err.Error(), "\n", " ", -1))
}
}
return commands, nil

0 comments on commit ccdd8b5

Please sign in to comment.