Fix typo in error handling.
Merge pull request #29 from ahume/master

Fix typo in error handling.