Slightly better exception.

It was annoying enough that I fixed this, so it's worth a merge :)