I know I can set errors and notices in the CP with
But it gets overruled by the default error message in my event.
I have a
beforeDeleteEntry event which stops the deleting of an entry by using
$event->performAction = false;. This makes Craft display a default error "can't delete entry". I'd like to add more to that error or show another one, but using
setError() does not work. A
setNotice() is shown however so I suppose the error gets replaced by the default Craft error.
Can I do something about that?