Fixing tests, better error handling

Seriously? On Christmas Day? Take a day off :)


> On Dec 25, 2014, at 8:45 PM, Christopher Trudeau <notifications@github.com> wrote:
> 
> In client/utils/utils.js:
> 
> > @@ -28,7 +34,7 @@ exports.delete = function(options) {
> >          if (response.statusCode != 204){
> >              return deferred.reject({
> >                  'statusCode':response.statusCode,
> > -                'Message':JSON.parse(body).Message
> > +                'Message':body && body.Message && JSON.parse(body).Message
> Also some of the APIs don't return an error message, they will just give a status code
> 
> —
> Reply to this email directly or view it on GitHub.
>