Add support for C-function's error-result.
Update documentation with map-error-result.
Merge pull request #20 from fracek/error-result

Add support for C-function's error-result.