Improve the wording of an exception.

I ran into this exception and couldn't figure out what's wrong without looking at the source code.