lijian 2 năm trước cách đây
mục cha
commit
0c50608941
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/agent/agent.go

+ 1 - 1
app/agent/agent.go

@@ -116,7 +116,7 @@ func (a *Agent) doUpload(ctx context.Context, fheader *multipart.FileHeader) (st
 	}
 	hash, err := a.backend.Store(ctx, fullName, file, size)
 	if err != nil {
-		return nil, errors.New("文件存储失败")
+		return nil, errors.New("文件存储失败:" + err.Error())
 	}
 
 	a.SetDefaultExpireTime(ctx, hash, fullName)