Added some more information to the exception we throw upon errors.