diff --git a/era/era_restore.cc b/era/era_restore.cc index 6eb9343..9ca0e93 100644 --- a/era/era_restore.cc +++ b/era/era_restore.cc @@ -45,9 +45,12 @@ namespace { parse_xml(*fs.input, restorer, fs.quiet); } catch (std::exception &e) { - if (metadata_touched) - file_utils::zero_superblock(*fs.output); cerr << e.what() << endl; + if (metadata_touched) + try { + file_utils::zero_superblock(*fs.output); + } catch (...) { + } return 1; }