use symbolic errno value instead of hardcoded number
Merge pull request #128 from larsmans/errno

use symbolic errno value instead of hardcoded number