make error reporting more friendly

Together with https://github.com/doctrine/annotations/pull/12 this allows annotations to show where the error is.