Add error message
Merge pull request #75 from esodov/fix_nil_result

Add error message