IIRC that action will render the handbrake useless & would require a replacement unit (£500 ish)
Davandso, another member had the same issue as yourself and had managed to pull the cables out a bit at a time, to get the cable back to full length.
I'll have a dig round and see if I can find it.
Sorry I can't find the post I was looking for, but did find this comment on another .....
"using molegripes on cable get someone to engage electric handbrake and then dis-engage whilst pulling cable out gives you yards !!!!"