return error after preparerecovery