Skip to content

Commit

Permalink
added error check in load
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jan 15, 2020
1 parent d4fde16 commit 89a5985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (r *DatasetResource) load(service storage.Service, object storage.Object) (
var content []byte
if content, err = ioutil.ReadAll(reader); err == nil {
if err = loader(datafile, content);err != nil {
return err
return errors.Wrapf(err, "failed to load dataset: %v", object.URL())
}
}
}
Expand Down

0 comments on commit 89a5985

Please sign in to comment.