What you did was that you transformed the original equation you made
$$\frac{x^2-3x+2}{x^2+x-6}=y \qquad \qquad (1)$$
by multiplying both sides with ${x^2+x-6}$, resulting in
$$x^2-3x+2=y(x^2+x-6) \qquad \qquad (2)$$.
Now that transformation logically works only in one direction: $(1) \implies (2)$. It does not work the other way around, because if $x^2+x-6=0$ then (2) can be true but (1) isn't (it isn't even defined in that case, which you noted). So you have to remember that any solutions of (2) are only valid for (1) if $x \neq 2,-3$.
Now you probably rearranged (2) to make it a quadratic in $x$:
$$(1-y)x^2-(3+y)x+(2+6y)=0 \qquad \qquad (3) $$.
(3) is only a quadratic if $(1-y) \neq 0$, which you need to consider in another case. Now you solved the quadratic. I'm omitting the details, but the end result is
$$x_{1,2}=\frac{3+y \pm(5y-1)}{2(1-y)} \qquad \qquad (4) $$.
OK, you did everything correctly except to take care of the 'little exceptions'. First, let's consider (3). You did not correctly consider $y=1$, in which case it becomes
$$-4x+8=0$$
with solution $x=2$.
So (3) actually has a solution in $x$ for each $y$, it is given by $x=2$ for $y=1$ and by (4) otherwise.
(3) is equivalent to (2), so we now need to consider the equivalence of (2) and (1). As already noted, they are not equivalent if $x=2,-3$, so we have to find which values of $y$ have only solutions in $\{2,-3\}$.
The first that springs to mind is our special case $y=1$, which has only solution $x=2$, which is thus not a solution of (1). Otherwise, we need to use (4), rembering that now $y \neq 1$:
$$\frac{3+y \pm(5y-1)}{2(1-y)}=2 \iff$$
$$3+y \pm(5y-1)=4(1-y) \iff$$
$$\pm(5y-1)=1-5y \qquad \qquad (5)$$
If we take the $+$-sign in (5) we get $y=\frac15$ as solution, with the $-$-sign all real $y$ are solutions. That means that (4) produces one 'invalid' solution $x=2$ for all $y$, and for $y=\frac15$ it is also the other solution, so $y=\frac15$ has no solution in (1).
The case $x=-3$ is solved the same way:
$$\frac{3+y \pm(5y-1)}{2(1-y)}=-3 \iff$$
$$3+y \pm(5y-1)=6(y-1) \iff$$
$$\pm(5y-1)=5y-9 \qquad \qquad (6)$$
If we take the $+$-sign in (6), there are no $y$ that satisfy it. If we take the $-$-sign, we get $y=1$, but we already know that that case cannot be discussed here.
So the final result is: (1) has a solution for every $y$ except for $y=1$ and $y=\frac15$. $y=1$ is a special case because (3) is not a quadratic in this case and $y=\frac15$ is the only case where (4) produces 2 solutions for $x$ that both are in $\{2,-3\}$, which is forbidden in (1).