lijian 2 years ago
parent
commit
0c50608941
1 changed files with 1 additions and 1 deletions
  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)