exception not thrown properly
Merge pull request #8 from adamjimenez/patch-1

exception not thrown properly