Fix misleading error message.