mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 17:20:53 +02:00
Improve package API log handling (#35100)
Simplify code and fix log processing logic
This commit is contained in:
1 parent
37958e486a
commit
f0da1de7e3
23 files changed
+101
-132
No files matched your search
@@ -25,9 +25,8 @@ import (
|
||||
)
|
||||
|
||||
func apiError(ctx *context.Context, status int, obj any) {
|
||||
helper.LogAndProcessError(ctx, status, obj, func(message string) {
|
||||
ctx.PlainText(status, message)
|
||||
})
|
||||
message := helper.ProcessErrorForUser(ctx, status, obj)
|
||||
ctx.PlainText(status, message)
|
||||
}
|
||||
|
||||
func GetRepositoryKey(ctx *context.Context) {
|
||||
|
||||
Reference in new issue
Block a user