Skip to content

Commit

Permalink
fix(os-exit): remove calls. See #46
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jul 14, 2018
1 parent 9cc8da1 commit 853794f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/service_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,11 @@ func (s *ServiceManager) Start() *exec.Cmd {
cmdReader, err := cmd.StdoutPipe()
if err != nil {
log.Printf("[ERROR] unable to create output pipe for cmd: %s\n", err.Error())
os.Exit(1)
}

cmdReaderErr, err := cmd.StderrPipe()
if err != nil {
log.Printf("[ERROR] unable to create error pipe for cmd: %s\n", err.Error())
os.Exit(1)
}

scanner := bufio.NewScanner(cmdReader)
Expand All @@ -146,7 +144,6 @@ func (s *ServiceManager) Start() *exec.Cmd {
err = cmd.Start()
if err != nil {
log.Println("[ERROR] service", err.Error())
os.Exit(1)
}

// Add service to registry
Expand Down

0 comments on commit 853794f

Please sign in to comment.