EgtExecutor :
- modifiche a ExeGetKeyLevel per restituire codice di errore in caso accada.
This commit is contained in:
@@ -333,6 +333,7 @@ ExeGetKeyLevel( int nProd, int nVer, int nLev, int& nKLev)
|
||||
if ( nRet != KEY_OK) {
|
||||
string sErr = "Error on Key (EGKL/" + ToString( nRet) + ")" ;
|
||||
LOG_ERROR( s_pGenLog, sErr.c_str()) ;
|
||||
nKLev = - nRet ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
@@ -348,6 +349,7 @@ ExeGetKeyOptions( int nProd, int nVer, int nLev, unsigned int& nOpt2)
|
||||
int nOptExpDays ;
|
||||
int nRet = GetKeyOptions( s_sKey, nProd, nVer, nLev, nOpt1, nOpt2, nOptExpDays) ;
|
||||
if ( nRet != KEY_OK) {
|
||||
nOpt2 = 0 ;
|
||||
string sErr = "Error on Key (EGKO/" + ToString( nRet) + ")" ;
|
||||
LOG_ERROR( s_pGenLog, sErr.c_str()) ;
|
||||
return false ;
|
||||
|
||||
Reference in New Issue
Block a user