Adds missing return in error check
Merge pull request #27 from eric-wieser/patch-1

Adds missing return in error check