No, there is no error. You can, however, say that the "linear approximation" is the vertical line x= -1.
Another way of looking at it is to treat this as an implicitly defining x as a function of y. Then, differentiating both sides with respect to y you would get x'= 0. That gives x= 0(y-1)- 1 or, again, x= -1.