Correctly propagate errors.

Part of the solution to chrisdickinson/glsl-parser#5
Merge pull request #7 from chrisdickinson/error-fix

Correctly propagate errors.