jpillora / node-edit-google-spreadsheet

A simple API for editing Google Spreadsheets
304 stars 101 forks source link

Batch error handler #28

Closed mxmz closed 9 years ago

mxmz commented 10 years ago

Hi.

I basically added a function that parses both non-200 HTML responses and XML error responses, and extracts some meaningful error strings.

Check it out.

Bye,

MM

jpillora commented 9 years ago

Thanks for the PR, though it added a bit too much at the time, we're using xml2json instead, and we're handling batch errors like https://github.com/jpillora/node-edit-google-spreadsheet/blob/stable/lib/spreadsheet.js#L436-L445