mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-20 13:24:38 -04:00
graph/education: slightly improve error handling and logging
- Use var for common errors - Add the addition error message to the Error() output of errorcode.Error - in PatchEducationSchool() use errorcode.RenderError() to turn the errorcode in to the right HTTP Status (instead of return 500 always)
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f