From 8527dd124b44fb5edb9d5b2c1fdfd54aa9a7e8d3 Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@lyda.ie> Date: Tue, 27 May 2025 21:03:31 +0100 Subject: [PATCH] Fix the errors bit --- repl/accounts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repl/accounts.go b/repl/accounts.go index dd756ab..88866bb 100644 --- a/repl/accounts.go +++ b/repl/accounts.go @@ -1,6 +1,7 @@ package repl import ( + "errors" "fmt" "strings" @@ -10,7 +11,6 @@ import ( "git.lyda.ie/kevin/bulletin/storage" "git.lyda.ie/kevin/bulletin/this" "git.lyda.ie/kevin/bulletin/users" - "github.com/pkg/errors" ) // ActionUser handles the USER command - it prints out help for all the @@ -153,7 +153,7 @@ func actionUserAdmin(cmd *dclish.Command, admin int64, doing string) error { ctx := storage.Context() err = this.Q.UpdateUserAdmin(ctx, admin, u.Login) if err != nil { - return errors.Errorf("Failed to make user %s (%s)", doing, err) + return fmt.Errorf("Failed to make user %s (%s)", doing, err) } fmt.Printf("User is now %s.\n", doing) return nil -- GitLab