mirror of https://github.com/h44z/wg-portal.git
				
				
				
			fix missing error check (#419)
This commit is contained in:
		
							parent
							
								
									6b0b78d749
								
							
						
					
					
						commit
						b06c03ef8e
					
				|  | @ -393,8 +393,14 @@ func (r *WgRepo) getOrCreatePeer(deviceId domain.InterfaceIdentifier, id domain. | |||
| 			}, | ||||
| 		}, | ||||
| 	}) | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("peer create error for %s: %w", id.ToPublicKey(), err) | ||||
| 	} | ||||
| 
 | ||||
| 	peer, err = r.getPeer(deviceId, id) | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("peer error after create: %w", err) | ||||
| 	} | ||||
| 	return peer, nil | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue