Skip to content

Commit 96eb3a2

Browse files
authored
Fix: Not returning error properly from listen and serve logic (#81)
1 parent 95285c2 commit 96eb3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func listenAndServe(p *Proxy, ctx context.Context, logger *zap.Logger) (err erro
294294

295295
for err = range ch {
296296
if err != nil {
297-
return nil
297+
return err
298298
}
299299
}
300300

0 commit comments

Comments
 (0)