Do not cast error field to integer
Merge pull request #9 from ergo/patch-1

Do not cast error field to integer