Added error handling to pet creation

Is it technically a 500 error if the user is requesting an admin that
doesn't exist though...


On Mon, Jun 23, 2014 at 8:42 PM, emiidee <notifications@github.com> wrote:

> In server/user/controller.create.js:
>
> >      var date = new Date();
> >      join.save({created_at: date, updated_at: date}, {patch: true});
> >      res.send(201, newpet);
> > +  })
> > +  .catch(function(err){
> > +    console.log(err);
> > +    res.send(400, err);
>
> 500, 'Internal server error'
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/getpawprint/pawprint/pull/139/files#r14111688>.
>