No worries, in that case we have a whole new situation. The same principle applies in that x+2 cannot equal zero and everything inside the bracket must be 0 or greater. To be honest, I would convert (x-1)/(x+2) into a partial fraction which would yield 1 - 3/(x+2) which can be obtained through long division. If you graph that you get a hyperbola (I think it's called that). You just gotta find when the graph is greater than or equal to zero. I would strongly suggest graphing it and you'll come to realise that from -2<x<1 the graph is negative. Thus the domain of that function would be the direct opposite, aka your aforementioned answer.
You'll find graphing stuff is always gonna help you and you need to learn and get used to do doing it. Hope that Helps.