wait() should throw error if the arg is falsy