Small nitpick on top of this; should have consistency between lines 271 and 279; use the message both times when raising a new AIError