mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
Merge branch 'v2' of github.com:foomo/gotsrpc into v2
This commit is contained in:
commit
4e721f023d
11
build.go
11
build.go
@ -176,9 +176,16 @@ func Build(conf *config.Config, goPath string) {
|
||||
os.Stderr,
|
||||
" goimports does not like the generated code: ",
|
||||
errProcessImports,
|
||||
", this is the code: ",
|
||||
code,
|
||||
)
|
||||
|
||||
// write code into file for debugging
|
||||
writeErr := ioutil.WriteFile(filename, []byte(code), 0644)
|
||||
if writeErr != nil {
|
||||
fmt.Fprintln(os.Stderr, " could not write go source to file", writeErr)
|
||||
os.Exit(5)
|
||||
}
|
||||
fmt.Fprintln(os.Stderr, "wrote code for debugging into file", filename)
|
||||
|
||||
os.Exit(5)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user