These errors shouldn't be logged =)
This commit is contained in:
parent
0cd0dc5b62
commit
aa2722b0a0
|
|
@ -1,6 +1,7 @@
|
|||
<?php namespace October\Demo\Components;
|
||||
|
||||
use Cms\Classes\ComponentBase;
|
||||
use ApplicationException;
|
||||
|
||||
class Todo extends ComponentBase
|
||||
{
|
||||
|
|
@ -32,7 +33,7 @@ class Todo extends ComponentBase
|
|||
$items = post('items', []);
|
||||
|
||||
if (count($items) >= $this->property('max')) {
|
||||
throw new \Exception(sprintf('Sorry only %s items are allowed.', $this->property('max')));
|
||||
throw new ApplicationException(sprintf('Sorry only %s items are allowed.', $this->property('max')));
|
||||
}
|
||||
|
||||
if (($newItem = post('newItem')) != '') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue