Fix missing error check.
This commit is contained in:
parent
acf7e462ad
commit
34dba0ade8
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,10 @@ func (h *Headscale) DestroyNamespace(name string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for _, p := range keys {
|
for _, p := range keys {
|
||||||
h.DestroyPreAuthKey(&p)
|
err = h.DestroyPreAuthKey(&p)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if result := h.db.Unscoped().Delete(&n); result.Error != nil {
|
if result := h.db.Unscoped().Delete(&n); result.Error != nil {
|
||||||
|
|
Loading…
Reference in a new issue