We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc5b72 commit 6dac5a4Copy full SHA for 6dac5a4
routers/web/org/setting.go
@@ -246,9 +246,7 @@ func SettingsChangeVisibilityPost(ctx *context.Context) {
246
247
if err := org_service.ChangeOrganizationVisibility(ctx, ctx.Org.Organization, visibility); err != nil {
248
log.Error("ChangeOrganizationVisibility: %v", err)
249
- ctx.JSON(http.StatusInternalServerError, map[string]any{
250
- "err": http.StatusText(http.StatusInternalServerError),
251
- })
+ ctx.JSONError(ctx.Tr("error.occurred"))
252
return
253
}
254
0 commit comments