lijian %!s(int64=2) %!d(string=hai) anos
pai
achega
0c50608941
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)