source/Core/ShopControl.php
protected function _getFormattedErrors($controllerName)
    {
        $errors = $this->_getErrors($controllerName);
        $formattedErrors = [];
        if (is_array($errors) && count($errors)) {
            foreach ($errors as $location => $ex2) {
                foreach ($ex2 as $key => $er) {
                    $error = unserialize($er);
                    $formattedErrors[$location][$key] = $error->getOxMessage();
                }
            }
        }

        return $formattedErrors;
    }
protected function _getFormattedErrors($controllerName)
    {
        $errors = $this->_getErrors($controllerName);
        $formattedErrors = [];
        if (is_array($errors) && count($errors)) {
            foreach ($errors as $location => $ex2) {
                foreach ($ex2 as $key => $er) {
                    $error = unserialize($er);
                    $formattedErrors[$location][$key] = $error->getOxMessage();
                }
            }
        }

        return $formattedErrors;
    }
protected function _getFormattedErrors ( $ controllerName ) { $ errors = $ this -> _getErrors ( $ controllerName ) ; $ formattedErrors = [ ] ; if ( is_array ( $ errors ) && count ( $ errors ) ) { foreach ( $ errors as $ location => $ ex2 ) { foreach ( $ ex2 as $ key => $ er ) { $ error = unserialize ( $ er ) ; $ formattedErrors [ $ location ] [ $ key ] = $ error -> getOxMessage ( ) ; } } } return $ formattedErrors ; }
Format error messages from _getErrors and return as array.

@param string $controllerName a class name

@return array
Format error messages from _getErrors and return as array .