mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
feat: handle insert into database error
This commit is contained in:
parent
62cfd60e38
commit
209d003832
1 changed files with 6 additions and 1 deletions
|
@ -205,7 +205,12 @@ func (api headscaleV1APIServer) SetTags(
|
|||
}
|
||||
}
|
||||
|
||||
api.h.SetTags(machine, request.GetTags())
|
||||
err = api.h.SetTags(machine, request.GetTags())
|
||||
if err != nil {
|
||||
return &v1.SetTagsResponse{
|
||||
Machine: nil,
|
||||
}, status.Error(codes.Internal, err.Error())
|
||||
}
|
||||
|
||||
log.Trace().
|
||||
Str("machine", machine.Name).
|
||||
|
|
Loading…
Reference in a new issue