HOR-1471

HOR-1471
This commit is contained in:
Paula V. Quispe
2016-07-27 16:37:21 -04:00
parent 4e14ccc976
commit c3fb995759
79 changed files with 399 additions and 170 deletions

View File

@@ -318,7 +318,10 @@ class AppEvent extends BaseAppEvent
return $c;
} catch (Exception $oError) {
$log[] = ' Error execute event : ' . $oError->getMessage();
die( $oError->getMessage() );
$token = strtotime("now");
PMException::registerErrorLog($oError, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
die;
return $oError->getMessage();
}
}

View File

@@ -192,7 +192,9 @@ class Translation extends BaseTranslation
$res['rowsJS'] = count( $translationJS );
return $res;
} catch (Exception $e) {
echo $e->getMessage();
$token = strtotime("now");
PMException::registerErrorLog($e, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
}
}
@@ -239,7 +241,9 @@ class Translation extends BaseTranslation
$res['rowsMafeJS'] = count( $translation );
return $res;
} catch (Exception $e) {
echo $e->getMessage();
$token = strtotime("now");
PMException::registerErrorLog($e, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
}
}
@@ -362,7 +366,9 @@ class Translation extends BaseTranslation
$res['rowsJS'] = count( $translationJS );
return $res;
} catch (Exception $e) {
echo $e->getMessage();
$token = strtotime("now");
PMException::registerErrorLog($e, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
}
}