1
0
mirror of https://github.com/gusaul/grpcox.git synced 2025-01-24 13:14:39 +00:00

Merge pull request #3 from aultokped/master

remove os exit from handling
This commit is contained in:
Muhammad Auliya 2018-11-05 13:49:56 +07:00 committed by GitHub
commit 79fe3402bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,8 +146,7 @@ func (r *Resource) Invoke(ctx context.Context, symbol string, in io.Reader) (str
}
if h.Status.Code() != codes.OK {
log.Printf("ERROR:\n Code: %s\n Message: %s\n", h.Status.Code().String(), h.Status.Message())
r.exit(1)
return "", end, fmt.Errorf(h.Status.Message())
}
// copy the output in a separate goroutine so printing can't block indefinitely