Scalr_Scripting_GlobalVariables::getErrorMessage PHP Method

getErrorMessage() public method

Return first error message from set of validation errors
public getErrorMessage ( ) : string
return string
    public function getErrorMessage()
    {
        $field = array_shift($this->errors);
        $errors = array_pop($field);
        return array_pop($errors);
    }