Solved a problem with error-passing
Merge pull request #7 from ertaiNL/master

Solved a problem with error-passing