diff options
Diffstat (limited to '')
| -rw-r--r-- | internal/admin/service.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/admin/service.go b/internal/admin/service.go index ba8fe8b..7459404 100644 --- a/internal/admin/service.go +++ b/internal/admin/service.go @@ -87,7 +87,7 @@ func NewService(modelPath, policyPath, serverConfigPath, reposDir string, mgmtRe slog.Debug(fmt.Sprintf("policy path %s", workingPolicyPath)) enf, err := casbin.NewSyncedEnforcer(modelPath, workingPolicyPath) if err != nil { - return &Servicer{}, fmt.Errorf("Couldn't load the enforcer encountered the following error: %w", err) + return &Servicer{}, fmt.Errorf("couldn't load the enforcer encountered the following error: %w", err) } conf, err := loadServerConfig(mgmtRepo, reposDir, serverConfigPath) if errors.Is(err, ErrMgmtRepoNotFound) { @@ -96,7 +96,7 @@ func NewService(modelPath, policyPath, serverConfigPath, reposDir string, mgmtRe conf.basePath = reposDir } else if err != nil { - return &Servicer{}, fmt.Errorf("Coudln't load server config. %w", err) + return &Servicer{}, fmt.Errorf("coudln't load server config. %w", err) } svc := &Servicer{ enf, |