src/GenSynth.php
public function error()
    {
        if ($this->error) {
            $debug_tpl_vars = [
                '{LANGUAGE}' => $this->language,
                '{PATH}'     => self::LANG_ROOT,
            ];
            $msg = strtr($this->error_messages[$this->error], $debug_tpl_vars);

            return "<br /><strong>GenSynth Error:</strong> $msg (code {$this->error})<br />";
        }

        return false;
    }
public function error()
    {
        if ($this->error) {
            $debug_tpl_vars = [
                '{LANGUAGE}' => $this->language,
                '{PATH}'     => self::LANG_ROOT,
            ];
            $msg = strtr($this->error_messages[$this->error], $debug_tpl_vars);

            return "<br /><strong>GenSynth Error:</strong> $msg (code {$this->error})<br />";
        }

        return false;
    }
public function error ( ) { if ( $ this -> error ) { $ debug_tpl_vars = [ '{LANGUAGE}' => $ this -> language , '{PATH}' => self :: LANG_ROOT , ] ; $ msg = strtr ( $ this -> error_messages [ $ this -> error ] , $ debug_tpl_vars ) ; return "<br /><strong>GenSynth Error:</strong> $msg (code {$this->error})<br />" ; } return false ; }
Returns an error message associated with the last GenSynth operation

@return string|false An error message if there has been an error, else false
Returns an error message associated with the last GenSynth operation