Skip to content

Commit

Permalink
DEVEX-2123 Fix crash when file-xxxx/download returns an error (#76)
Browse files Browse the repository at this point in the history
* Fix crash when file-xxxx/download returns an error

* Bump version to v1.0.1 for release
  • Loading branch information
kpjensen authored Jul 26, 2022
1 parent 385b396 commit cf6dd59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dxfuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ func (fsys *Filesys) openRegularFile(
body, err := dxda.DxAPI(ctx, oph.httpClient, NumRetriesDefault, &fsys.dxEnv, fmt.Sprintf("%s/download", f.Id), payload)
if err != nil {
oph.RecordError(err)
return nil, err
return nil, fsys.translateError(err)
}
var u DxDownloadURL
json.Unmarshal(body, &u)
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
NumRetriesDefault = 10
InitialUploadPartSize = 16 * MiB
MaxUploadPartSize = 700 * MiB
Version = "v1.0.0"
Version = "v1.0.1"
)
const (
InodeInvalid = 0
Expand Down

0 comments on commit cf6dd59

Please sign in to comment.