initial permissions endpoint implementation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-11 11:34:43 +11:00
parent b77e47ba7e
commit eb5707a376
6 changed files with 203 additions and 9 deletions

View File

@@ -111,7 +111,9 @@ func (s *Safe) SafeAdd() (*Safe, error) {
log.Printf("safe: %v\n", s)
}
} else {
log.Printf("SafeAdd safe name already exists : '%v'\n", err)
errString := "safe with name already exists"
log.Printf("SafeAdd %s\n", errString)
return &Safe{}, errors.New(errString)
}
return s, nil