I call a service function inside the performAction method of custom element-action and I'd like to show an error message to user if the service function returned false.
I was able to set success message by using:
$this->setMessage($this->getParams()->successMessage);
But I don't know how to set an error message i.e. with red background.