Fixed error handling typo
Merge pull request #3 from devoncrouse/master

Fixed error handling typo