Function = (X+2)\(X+1)

When X = -1 for a function, it says "ERROR" on the calculator.

So if this is an asymtote, doesn't that mean the range would be all real numbers as the values between -2 and -1 would reach infinity?

Can someone explain why this reasoning is wrong? The real answer is supposed to be all real numbers except 1.