This example for handling callback results does properly handle 100% or n%
or a single error. The Execute() callback returns a result[] array which is
always the same size as the number of batch requests, even if there are
zero successful results. I can change the example so it better handles the
Execute() callback in case the library will change how it returns err and
results in the future.


On Sat, Jun 8, 2013 at 5:40 PM, Burcu Dogan <notifications@github.com>wrote:

> In examples/multiple.js:
>
> > @@ -29,7 +29,18 @@ googleapis
> >        .add(req1)
> >        .add(req2)
> >        .withApiKey('YOUR API KEY HERE')
> > -      .execute(function(err, results) {
> > -        console.log('Results: ', results);
> > -      });
> > +      .execute(function(err, results)  {
>
> Need to handle single errors.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/google/google-api-nodejs-client/pull/47/files#r4602638>
> .
>