Hello,
Oh, I see. Everything depends on the error that you get but in general it’s enough to restore the files of the theme and XStore core plugin.
Regards