EgtMachKernel :

- in simulazione sistemato richiamo OnEndMove dopo errore di collisione alla fine del movimento.
This commit is contained in:
Dario Sassi
2024-04-29 08:43:10 +02:00
parent e97b9df6d4
commit c191d6d831
2 changed files with 14 additions and 5 deletions
+5 -1
View File
@@ -311,7 +311,11 @@ MachMgr::SetLastError( int nErr, const string& sErr)
{
m_nLastError = nErr ;
m_sLastError = sErr ;
string sInfo = m_sLastError + " (" + ToString( nErr) + ")" ;
string sInfo ;
if ( sErr._Starts_with( "Error"))
sInfo = m_sLastError + " (" + ToString( nErr) + ")" ;
else
sInfo = "Error " + ToString( nErr) + " : " + m_sLastError ;
LOG_ERROR( GetEMkLogger(), sInfo.c_str()) ;
return true ;
}