Improved error handling
This commit is contained in:
@ -15,7 +15,7 @@ func Get(ctx *aero.Context) string {
|
||||
posts, err := arn.GetPosts()
|
||||
|
||||
if err != nil {
|
||||
return ctx.Error(500, "Error fetching posts")
|
||||
return ctx.Error(500, "Error fetching posts", err)
|
||||
}
|
||||
|
||||
sort.Sort(sort.Reverse(posts))
|
||||
|
Reference in New Issue
Block a user