Closed ssimono closed 10 years ago
This fails if result.feed.entry
is an array (since batch:status
doesn't exist on result.feed.entry
but on result.feed.entry[x]
)
For ref: https://developers.google.com/gdata/docs/batch#Handling_Errors
You need to check the batch:status element of each entry in the response to find out whether the associated operation was successfully processed.
Moreover, probably useful to add a failsave in case no send
was called without adding entries.
Can probably add some work in here the couple of days to make this more robust.
Hey @ssimono thanks for the fix. Can you comment on @gebrits remarks? Also one minor nitpick, can we keep the indentation uniform with 2 spaces?
@jpillora I think this is good to go.
Thanks @ssimono and @gebrits, will merge this soon
Considers result from request an object and get error information from it.