Fix failure argument in reportError:

If we create error object and check it after, we should use it in the method.
Merge pull request #4 from agitka/patch-1

Fix failure argument in reportError: