mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 09:51:01 +00:00
Fail gracefully on grpc listening error (#4118)
This commit is contained in:
parent
4dd4d9755d
commit
4289853322
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ import (
|
|||
func runGrpcServer(ctx context.Context, c *cli.Command, _store store.Store) error {
|
||||
lis, err := net.Listen("tcp", c.String("grpc-addr"))
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("failed to listen on grpc-addr") //nolint:forbidigo
|
||||
return fmt.Errorf("failed to listen on grpc-addr: %w", err)
|
||||
}
|
||||
|
||||
jwtSecret := c.String("grpc-secret")
|
||||
|
|
Loading…
Reference in a new issue