测试修复文件上传 bug
This commit is contained in:
@@ -87,6 +87,7 @@ func (h *Handler) writeObject(c *gin.Context, publicOnly bool) {
|
||||
}
|
||||
|
||||
func writeFileError(c *gin.Context, err error) {
|
||||
_ = c.Error(err)
|
||||
switch {
|
||||
case errors.Is(err, ErrDependencyUnavailable):
|
||||
response.ServiceUnavailable(c, "文件存储未连接")
|
||||
|
||||
Reference in New Issue
Block a user