Improved error logging
This commit is contained in:
@ -16,7 +16,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)
|
||||
@ -33,7 +33,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)
|
||||
@ -76,7 +76,7 @@ func getMatches(ctx *aero.Context) ([]*arn.AniListMatch, 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")
|
||||
}
|
||||
|
||||
// Get user
|
||||
|
Reference in New Issue
Block a user