adjusting error catching to match sails error syntax