diff options
author | 2023-05-12 08:16:41 +0000 | |
---|---|---|
committer | 2023-05-12 10:16:41 +0200 | |
commit | ba5a464ca5d3fcbd171c174a4f07c3326ecb01df (patch) | |
tree | 4289873a2fef9a9b102fb692b0cf6d3409a41747 /internal/web/settings-panel.go | |
parent | use more semantic headers for profile page (#1765) (diff) | |
download | gotosocial-ba5a464ca5d3fcbd171c174a4f07c3326ecb01df.tar.xz |
[chore] Prefer JSON errors in API endpoints (#1766)
* Default to JSON over HTML for error handling
* Change the default error display for web endpoints to html
Diffstat (limited to 'internal/web/settings-panel.go')
-rw-r--r-- | internal/web/settings-panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/settings-panel.go b/internal/web/settings-panel.go index a302945c3..615f2d265 100644 --- a/internal/web/settings-panel.go +++ b/internal/web/settings-panel.go @@ -28,7 +28,7 @@ import ( func (m *Module) SettingsPanelHandler(c *gin.Context) { instance, err := m.processor.InstanceGetV1(c.Request.Context()) if err != nil { - apiutil.ErrorHandler(c, gtserror.NewErrorInternalError(err), m.processor.InstanceGetV1) + apiutil.WebErrorHandler(c, gtserror.NewErrorInternalError(err), m.processor.InstanceGetV1) return } |