Update the error checking to work with sails 0.10-rc5