if (it != itEnd && ret == Result::ERROR) {
LOG(ERROR) << "Failure occurs in step: " << (*it)->name();
do {
- status = SafeExecute(*it, &Step::undo, "undo");
- if (Step::Status::OK != status) {
+ if (SafeExecute(*it, &Step::undo, "undo") != Step::Status::OK) {
+ LOG(ERROR) << "Error during undo operation(" << (*it)->name()
+ << "), but continuing...";
ret = Result::UNDO_ERROR;
}
} while (it-- != itStart);
do {
if (it == itEnd)
--it;
- status = SafeExecute(*it, &Step::clean, "clean");
- if (Step::Status::OK != status) {
+ if (SafeExecute(*it, &Step::clean, "clean") != Step::Status::OK) {
+ LOG(ERROR) << "Error during clean operation(" << (*it)->name() << ")";
ret = Result::CLEANUP_ERROR;
break;
}