Improved error handling

This commit is contained in:
2016-11-23 14:26:59 +09:00
parent da96ad60e7
commit 73b68c0a0f
7 changed files with 12 additions and 20 deletions

View File

@ -12,7 +12,7 @@ func Get(ctx *aero.Context) string {
user, err := arn.GetUserByNick(nick)
if err != nil {
return ctx.Error(404, "User not found")
return ctx.Error(404, "User not found", err)
}
return ctx.HTML(components.Profile(user, nil))