Improved error logging
This commit is contained in:
@ -15,7 +15,7 @@ func Preview(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
if user == nil {
|
||||
return ctx.Error(http.StatusBadRequest, "Not logged in", nil)
|
||||
return ctx.Error(http.StatusBadRequest, "Not logged in")
|
||||
}
|
||||
|
||||
matches, response := getMatches(ctx)
|
||||
@ -32,7 +32,7 @@ func Finish(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
if user == nil {
|
||||
return ctx.Error(http.StatusBadRequest, "Not logged in", nil)
|
||||
return ctx.Error(http.StatusBadRequest, "Not logged in")
|
||||
}
|
||||
|
||||
matches, response := getMatches(ctx)
|
||||
@ -87,7 +87,7 @@ func getMatches(ctx *aero.Context) ([]*arn.KitsuMatch, string) {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
if user == nil {
|
||||
return nil, ctx.Error(http.StatusBadRequest, "Not logged in", nil)
|
||||
return nil, ctx.Error(http.StatusBadRequest, "Not logged in")
|
||||
}
|
||||
|
||||
kitsuUser, err := kitsu.GetUser(user.Accounts.Kitsu.Nick)
|
||||
|
Reference in New Issue
Block a user