summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/setting/secrets.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/setting/secrets.go')
-rw-r--r--routers/web/repo/setting/secrets.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/web/repo/setting/secrets.go b/routers/web/repo/setting/secrets.go
index 444f16f86c..3d7a057602 100644
--- a/routers/web/repo/setting/secrets.go
+++ b/routers/web/repo/setting/secrets.go
@@ -92,6 +92,12 @@ func SecretsPost(ctx *context.Context) {
ctx.ServerError("getSecretsCtx", err)
return
}
+
+ if ctx.HasError() {
+ ctx.JSONError(ctx.GetErrMsg())
+ return
+ }
+
shared.PerformSecretsPost(
ctx,
sCtx.OwnerID,