Neos.Media.Browser/Classes/Controller/AssetController.php
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]);
    }
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]);
    }
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 ] ) ; }
Individual error FlashMessage that hides which action fails in production.

@return Message|bool The flash message or false if no flash message should be set
Individual error FlashMessage that hides which action fails in production .