fixing error reporting
Merge pull request #26 from slayoo/error_reporting

fixing error reporting