More accurante message

This commit is contained in:
Laurent Destailleur 2018-02-21 21:59:11 +01:00
parent b4446764f8
commit 0c59d536ba
2 changed files with 4 additions and 2 deletions

View File

@ -925,7 +925,8 @@ class Cronjob extends CommonObject
$ret=dol_include_once($this->classesname);
if ($ret===false || (! class_exists($this->objectname)))
{
$this->error=$langs->trans('CronCannotLoadClass',$this->classesname,$this->objectname);
if ($ret===false) $this->error=$langs->trans('CronCannotLoadClass',$this->classesname,$this->objectname);
else $this->error=$langs->trans('CronCannotLoadObject',$this->classesname,$this->objectname);
dol_syslog(get_class($this)."::run_jobs ".$this->error, LOG_ERR);
$this->lastoutput = $this->error;
$this->lastresult = -1;

View File

@ -74,7 +74,8 @@ CronFrom=From
CronType=Job type
CronType_method=Call method of a PHP Class
CronType_command=Shell command
CronCannotLoadClass=Cannot load class %s or object %s
CronCannotLoadClass=Cannot load class file %s (to use class %s)
CronCannotLoadObject=Class file %s was loaded, but object %s was not found into it
UseMenuModuleToolsToAddCronJobs=Go into menu "Home - Admin tools - Scheduled jobs" to see and edit scheduled jobs.
JobDisabled=Job disabled
MakeLocalDatabaseDumpShort=Local database backup