mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Fix error handling
This commit is contained in:
@@ -459,7 +459,7 @@ func (s *Server) sendJob(ctx context.Context, accountID string, peerKey wgtypes.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithContext(ctx).Errorf("failed to encrypt job for peer %s: %v", peerKey.String(), err)
|
log.WithContext(ctx).Errorf("failed to encrypt job for peer %s: %v", peerKey.String(), err)
|
||||||
s.jobManager.CloseChannel(ctx, accountID, peer.ID)
|
s.jobManager.CloseChannel(ctx, accountID, peer.ID)
|
||||||
return nil
|
return status.Errorf(codes.Internal, "failed processing job message")
|
||||||
}
|
}
|
||||||
err = srv.Send(&proto.EncryptedMessage{
|
err = srv.Send(&proto.EncryptedMessage{
|
||||||
WgPubKey: s.wgKey.PublicKey().String(),
|
WgPubKey: s.wgKey.PublicKey().String(),
|
||||||
|
|||||||
Reference in New Issue
Block a user