Its a good buy at fifty bucks, what you'd pay for a motor in a wheel. Likely the motor is good or fairly easily fixable, the rest should be priced at scrap value.
New battery,, hmmm. That might be worth the 280, but new could still stink. Error 10 might be battery.