forked from TrueCloudLab/rclone
onedrive: graph: fix unchecked err
This commit is contained in:
parent
468760e5e7
commit
dc4c3e57cc
1 changed files with 2 additions and 2 deletions
|
@ -764,8 +764,8 @@ func (f *Fs) waitForJob(location string, o *Object) error {
|
||||||
return errors.Errorf("%s: async operation returned %q", o.remote, status.Status)
|
return errors.Errorf("%s: async operation returned %q", o.remote, status.Status)
|
||||||
}
|
}
|
||||||
case "completed":
|
case "completed":
|
||||||
o.readMetaData()
|
err = o.readMetaData()
|
||||||
return nil
|
return errors.Wrapf(err, "async operation completed but readMetaData failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
|
|
Loading…
Add table
Reference in a new issue