Commit e41dc2c7 authored by Fabio Vitello's avatar Fabio Vitello
Browse files

#588: error handling on minor servo setup

 if it is not possible to conclude setup set revert  m_servo_status.starting to false
parent 556055f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ throw (MinorServoErrors::SetupErrorExImpl)
    }catch(const ServoConnectionError& sce){
        THROW_EX(MinorServoErrors, SetupErrorEx, sce.what(), false);
    }catch(...){
        m_servo_status.starting = false;
        THROW_EX(MinorServoErrors, SetupErrorEx, "Cannot conclude setup", false);
    }
    /**
@@ -405,6 +406,7 @@ throw (MinorServoErrors::SetupErrorExImpl)
    }catch(const ServoConnectionError& sce){
        THROW_EX(MinorServoErrors, SetupErrorEx, sce.what(), false);
    }catch(...){
        m_servo_status.starting = false;
        THROW_EX(MinorServoErrors, SetupErrorEx, "Cannot conclude setup", false);
    }
}