diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | src/lib.go | 9 |
2 files changed, 6 insertions, 4 deletions
@@ -65,6 +65,7 @@ integration-tests = \ tests/cli-opts.sh \ tests/integration.sh \ +.PRECIOUS: $(integration-tests) $(integration-tests): $(NAME).bin $(integration-tests): ALWAYS sh $@ @@ -93,7 +93,7 @@ func Start(toAddr string, listener net.Listener) { if err != nil { g.Warning( "Error accepting connection", - "accept-connection", + "accept-connection-error", "err", err, ) continue @@ -103,12 +103,13 @@ func Start(toAddr string, listener net.Listener) { connTo, err := net.Dial("unix", toAddr) if err != nil { - g.Error( + g.Warning( "Error dialing connection", - "dial-connection", + "dial-connection-error", "err", err, ) - os.Exit(1) + connFrom.Close() + continue } defer connTo.Close() |