Update the error checking to work with sails 0.10-rc5
Merge pull request #23 from bmac/update-error-checking

Update the error checking to work with sails 0.10-rc5