Unverified Commit 8527dd12 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Fix the errors bit

parent cce9a279
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
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