Neos\Media\Browser\Controller\Module\Management\AssetController::getErrorFlashMessage PHP Метод

getErrorFlashMessage() защищенный Метод

Individual error FlashMessage that hides which action fails in production.
protected getErrorFlashMessage ( ) : Neos\Error\Messages\Message
Результат Neos\Error\Messages\Message The flash message or FALSE if no flash message should be set
    protected function getErrorFlashMessage()
    {
        if ($this->arguments->getValidationResults()->hasErrors()) {
            return false;
        }
        $errorMessage = 'An error occurred';
        if ($this->objectManager->getContext()->isDevelopment()) {
            $errorMessage .= ' while trying to call %1$s->%2$s()';
        }
        return new Error($errorMessage, null, [get_class($this), $this->actionMethodName]);
    }