Emit real errors
Merge pull request #12 from Raynos/patch-3

Emit real errors