Style nits; fixed a minor typo in exception message