When this happens to me, or if I find I have an error in a past row, I use a crochet hook to work each stitch back up and get it back on the needles. With cables it is a pain to do if there is a cross and you have to work it back up but it can be done if you look carefully at the work. Put the stitches on a cable needle or double pointed needle while you work up the other side, just as you would if you were knitting a cable the usual way with a cable needle. You may need to pull out a row or two of just your 6 stitches and work them back up. It might take you a while especially at first, but you will have things like this happen again and if you practice you will improve and it will be faster than unravelling a few rows. Usually when I come around to the stitches again I have some of them seated backwards so that I have to knit or purl into the back of the stitch, so you need to look at them carefully so see how they are seated.
You can also keep all the other dropped stitches except the one you are working with on a cable or double pointed needle so you don't pull them out more while you are working.