Loading repl/accounts.go +2 −2 Original line number Diff line number Diff line package repl import ( "errors" "fmt" "strings" Loading @@ -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 Loading Loading @@ -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 Loading Loading
repl/accounts.go +2 −2 Original line number Diff line number Diff line package repl import ( "errors" "fmt" "strings" Loading @@ -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 Loading Loading @@ -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 Loading