fixed error return value
Merge pull request #39 from SirSlaxalot/master

fixed error return value