aim-oscar-server/aimerror/errors.go

14 lines
340 B
Go
Raw Normal View History

2021-12-19 01:14:25 -05:00
package aimerror
import "github.com/pkg/errors"
2021-12-19 17:17:47 -05:00
func FetchingUser(err error, username string) error {
return errors.Wrapf(err, "could not fetch user with username %s", username)
}
func UserNotFound(username string) error {
return errors.Errorf("no user with UIN %s", username)
2021-12-19 01:14:25 -05:00
}
var NoUserInSession = errors.New("no user in session")