Fix confusing error message.

See patch.