Skip to content
Snippets Groups Projects
Commit a454613b authored by Christian Pointner's avatar Christian Pointner
Browse files

some more refactoring

parent b861db61
Branches
Tags
No related merge requests found
......@@ -288,7 +288,8 @@ func (api *API) TestFileFlowJS() http.Handler {
}
if chunk > uint64(len(file.chunks)) {
sendWebResponse(w, http.StatusConflict, ErrorResponse{Error: fmt.Sprintf("invalid chunk number %d, the flow.js upload is only %d chunks long", chunk, len(file.chunks))})
errStr := fmt.Sprintf("invalid chunk number %d, the flow.js upload is only %d chunks long", chunk, len(file.chunks))
sendWebResponse(w, http.StatusConflict, ErrorResponse{Error: errStr})
return
}
switch file.chunks[chunk-1].GetState() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment