diff --git a/repl/accounts.go b/repl/accounts.go index dd756ab8c673cf7302313d5248565a9d293e0acd..88866bbd2c6bac6c72137dc466e0e4e9acf2ab1e 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