diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 1ac8090de..abdffdf1c 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -2538,6 +2538,9 @@ func (o *Object) uploadSinglepart(ctx context.Context, in io.Reader, src fs.Obje } // Set the mod time now and read metadata info, err = o.fs.fetchAndUpdateMetadata(ctx, src, options, o) + if err != nil { + return nil, fmt.Errorf("failed to fetch and update metadata: %w", err) + } return info, o.setMetaData(info) }