Skip to content
Snippets Groups Projects
Unverified Commit 8527dd12 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Fix the errors bit

parent cce9a279
No related branches found
No related tags found
1 merge request!8More doc stuff
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment