Error management

This commit is contained in:
Laurent Destailleur 2019-04-11 18:36:22 +02:00
parent f13b30fc62
commit 36542b818a

View File

@ -1348,7 +1348,7 @@ class EmailCollector extends CommonObject
else else
{ {
// Nothing can be done for this param // Nothing can be done for this param
$errorforthisaction++; $errorforaction++;
$this->error = 'The extract rule to use to load thirdparty has on an unknown source (must be HEADER, SUBJECT or BODY)'; $this->error = 'The extract rule to use to load thirdparty has on an unknown source (must be HEADER, SUBJECT or BODY)';
$this->errors[] = $this->error; $this->errors[] = $this->error;
} }
@ -1361,7 +1361,7 @@ class EmailCollector extends CommonObject
} }
else else
{ {
$errorforthisaction++; $errorforaction++;
$this->error = 'Bad syntax for description of action parameters: '.$actionparam; $this->error = 'Bad syntax for description of action parameters: '.$actionparam;
$this->errors[] = $this->error; $this->errors[] = $this->error;
break; break;