I want to evaluate the following limit
$$\lim_{x\rightarrow1}{\frac{1+\log{x}-e^{x-1}}{(x-1)^2}}$$
I use L'Hospital's rule:
$$\lim_{x\rightarrow1}{\frac{\frac{1}{x}-e^{x-1}}{2(x-1)}}$$
Now, here my textbook applies the L'Hospital's rule again. What I instead did was proceeding this way:
$$\lim_{x\rightarrow1}{\frac{\frac{1-xe^{x-1}}{x}}{2(x-1)}}=\lim_{x\rightarrow1}{\frac{1-xe^{x-1}}{2x(x-1)}}=\lim_{x\rightarrow1}{h(x)}$$
Now,
$$h(x)\sim \frac{1-e^{x-1}}{2(x-1)}=\frac{-(e^{x-1}-1)}{2(x-1)}\sim\frac{-(x-1)}{2(x-1)}=-\frac 1 2$$
I think I did something wrong with the asymptotics because the solution is actually $-1$. Any hints?