mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-12-10 01:14:57 +08:00
Refactor error system (#33610)
This commit is contained in:
@@ -52,7 +52,7 @@ func NodeInfo(ctx *context.APIContext) {
|
||||
}
|
||||
|
||||
if err := ctx.Cache.PutJSON(cacheKeyNodeInfoUsage, nodeInfoUsage, 180); err != nil {
|
||||
ctx.InternalServerError(err)
|
||||
ctx.APIErrorInternal(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user