Replaced fail with return Err

Closes https://github.com/PistonDevelopers/gfx_graphics/issues/85
Merge pull request #86 from bvssvni/master

Replaced fail with return Err