Improved error logging
This commit is contained in:
@ -14,7 +14,7 @@ func CountUnseen(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")
|
||||
}
|
||||
|
||||
unseen := user.Notifications().CountUnseen()
|
||||
@ -27,7 +27,7 @@ func MarkNotificationsAsSeen(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")
|
||||
}
|
||||
|
||||
notifications := user.Notifications().Notifications()
|
||||
@ -45,7 +45,7 @@ func Test(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")
|
||||
}
|
||||
|
||||
user.SendNotification(&arn.PushNotification{
|
||||
|
@ -18,7 +18,7 @@ func ByUser(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")
|
||||
}
|
||||
|
||||
var viewUser *arn.User
|
||||
|
Reference in New Issue
Block a user