This improves error reporting slightly.
The compiler can in fact return errors, but these weren't tested yet.