[era_restore] Ignore errors from zero_superblock.

Since it's on the error path.
This commit is contained in:
Joe Thornber 2017-10-05 11:49:01 +01:00
parent 99e8459be3
commit 924a996fa7

View File

@ -45,9 +45,12 @@ namespace {
parse_xml(*fs.input, restorer, fs.quiet); parse_xml(*fs.input, restorer, fs.quiet);
} catch (std::exception &e) { } catch (std::exception &e) {
if (metadata_touched)
file_utils::zero_superblock(*fs.output);
cerr << e.what() << endl; cerr << e.what() << endl;
if (metadata_touched)
try {
file_utils::zero_superblock(*fs.output);
} catch (...) {
}
return 1; return 1;
} }