Fix error message more specifically. Ref #214.