print out the error

@return void
485664
public function prettyPrint()
    {
        print($this->ecode . " (" . $this->getHttpStatus() . "): " .
            $this->getMessage() . "\n");
        if (!empty($this->errors)) {
            print("Field errors:\n");
            foreach($this->errors as $field_error) {
                foreach($field_error as $k => $v) {
                    print("  " . $k . ": " . $v . "\n");
                }
                print("\n");
            }
        }
    }
926004
final protected function writeFileError():int
    {
        $d1 = "[";
        $d2 = "]";
        $debug = array();
        $debug['time'] = $d1.$this->time.$d2;
        $debug["uidie"] = $d1.$this->uidie.$d2;
        $debug['client_ip'] = $d1.$this->client_ip.$d2;
        $debug['code'] = $d1.$this->code.$d2;
        $debug['code_title'] = $d1.$this->codeTitle.$d2;
        $debug['explain'] = $d1.$this->explain.$d2;
        $debug['solution'] = $d1.$this->solution.$d2;
        $debug['env'] = $d1.FEnv::get("framework.env").$d2;


        if (defined("IUMIO_FCM") && IUMIO_FCM === true) {
            $debug['uri'] = $d1."Framework Console Manager".$d2;

            $debug['referer'] = $d1."From Framework Console Manager".$d2;
        } else {
            $debug['method'] = $d1 . $_SERVER['REQUEST_METHOD'] . $d2;
            $debug['uri'] = $d1 . $_SERVER['REQUEST_URI'] . $d2;
        }

        $debug['referer'] = $d1.(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null).$d2;

        if ($this->type_error != null) {
            $debug['type_error'] = $d1 . $this->type_error . $d2;
            $debug['file_error'] = $d1 . $this->file_error . $d2;
            $debug['line_error'] = $d1 . $this->line_error . $d2;
        }
        $strlog =  implode(" ", $debug);
        $f = new \iumioFramework\Core\Base\File\FileListener();

        $f->open(
            FEnv::get("framework.logs").strtolower(FEnv::get("framework.env")).".log",
            "a+",
            true
        );
        $f->put($strlog);
        $f->close();
        return (1);
    }
407863
public function errorAction()
    {
        $errors       = $this->_getParam('error_handler');
        $exception    = $errors->exception;
        $info         = null;
        $message      = 'Application error';
        $responseCode = 200;

        switch ($errors->type) {
            case \Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
            case \Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
                // 404 error -- controller or action not found
                $responseCode = 404;
                $message      = 'Page not found';
                break;

            case \Zend_Controller_Plugin_ErrorHandler::EXCEPTION_OTHER:

                if ($exception instanceof \Gems_Exception) {
                    $responseCode = $exception->getCode();
                    $message      = $exception->getMessage();
                    $info         = $exception->getInfo();
                    break;
                }
                // Intentional fall through

            default:
                $message = $exception->getMessage();
                break;
        }

        \Gems_Log::getLogger()->logError($errors->exception, $errors->request);

        if (\MUtil_Console::isConsole()) {
            $this->_helper->viewRenderer->setNoRender(true);

            echo $message . "\n\n";
            if ($info) {
                echo $info . "\n\n";
            }

            $next = $exception->getPrevious();
            while ($next) {
                echo '  ' . $next->getMessage() . "\n";
                $next = $next->getPrevious();
            }

            echo $exception->getTraceAsString();

        } else {
            if ($responseCode) {
                $this->getResponse()->setHttpResponseCode($responseCode);
            }

            $this->view->exception = $exception;
            $this->view->message   = $message;
            $this->view->request   = $errors->request;
            if ($info) {
                $this->view->info = $info;
            }

        }
    }
265716
def error(self, s):
        
        print("   ERROR: '%s', %s" % (self.src_id, s), file=sys.stderr)
1002394
protected function printWarnings(): void
    {
        foreach ($this->warnings as $error) {
            $this->output->write('<fg=yellow>WARNING </> ');

            if ($error['type'] == 'param-missing') {
                $this->output->write('<info>' . $error['method'] . '</info> - @param <fg=cyan>' . $error['param'] . '</> missing.');
            }

            if ($error['type'] == 'param-mismatch') {
                $paramType = implode('|', (array)$error['param-type']);
                $this->output->write('<info>' . $error['method'] . '</info> - @param <fg=cyan>' . $error['param'] . '</> (' . $error['doc-type'] . ')  does not match method signature (' . $paramType . ').');
            }

            if ($error['type'] == 'return-missing') {
                $this->output->write('<info>' . $error['method'] . '</info> - @return missing.');
            }

            if ($error['type'] == 'return-mismatch') {
                $this->output->write('<info>' . $error['method'] . '</info> - @return <fg=cyan>' . $error['doc-type'] . '</>  does not match method signature (' . $error['return-type'] . ').');
            }

            $this->output->writeln('');
        }
    }
797750
def error(*args):
    """"""
    if sys.stdin.isatty():
        print('ERROR:', *args, file=sys.stderr)
    else:
        notify_error(*args)
69395
function ReportOutput()
    {
        $fp = fopen($this->filenosuffix . ".out", "wb");
        if (!$fp) {
            return;
        }
        for ($i = 0; $i < $this->nstate; $i++) {
            $stp = $this->sorted[$i];
            fprintf($fp, "State %d:\n", $stp->statenum);
            if ($this->basisflag) {
                $cfp = $stp->bp;
            } else {
                $cfp = $stp->cfp;
            }
            while ($cfp) {
                if ($cfp->dot == $cfp->rp->nrhs) {
                    $buf = sprintf('(%d)', $cfp->rp->index);
                    fprintf($fp, '    %5s ', $buf);
                } else {
                    fwrite($fp,'          ');
                }
                $cfp->ConfigPrint($fp);
                fwrite($fp, "\n");
                if (0) {
                    //SetPrint(fp,cfp->fws,$this);
                    //PlinkPrint(fp,cfp->fplp,"To  ");
                    //PlinkPrint(fp,cfp->bplp,"From");
                }
                if ($this->basisflag) {
                    $cfp = $cfp->bp;
                } else {
                    $cfp = $cfp->next;
                }
            }
            fwrite($fp, "\n");
            for ($ap = $stp->ap; $ap; $ap = $ap->next) {
                if ($ap->PrintAction($fp, 30)) {
                    fprintf($fp,"\n");
                }
            }
            fwrite($fp,"\n");
        }
        fclose($fp);
    }
1133248
def print_error(msg):
    
    if IS_POSIX:
        print(u"%s[ERRO] %s%s" % (ANSI_ERROR, msg, ANSI_END))
    else:
        print(u"[ERRO] %s" % (msg))
964164
public function errorLogger()
    {
        switch ($this->commMethod) {
            case 'liveupdate':
                $orderId = $this->formData['ORDER_REF'];
                $type = "LiveUpdate";
                break;
            case 'backref':
                $orderId = $this->order_ref;
                $type = "BackRef";
                break;
            case 'ios':
                $orderId = $this->orderNumber;
                $type = "IOS";
                break;
            case 'ipn':
                $orderId = @$this->postData['REFNOEXT'];
                $type = "IPN";
                break;
            case 'idn':
                $orderId = $this->refnoext;
                $type = "IDN";
                break;
            case 'irn':
                $orderId = $this->refnoext;
                $type = "IRN";
                break;
            case 'timeout':
                $orderId = $this->order_ref;
                $type = "TIMEOUT";
                break;
            case 'oneclick':
                $orderId = $this->formData['EXTERNAL_REF'];
                $type = "OneClick";
                break;
            case 'alu':
                $orderId = $this->formData['ORDER_REF'];
                $type = "ALU";
                break;

            default:
                $orderId = 'EMPTY';
                $type = 'general';
                $this->debugMessage[] = 'DEBUG_LOGGER_UNDEFINED_ID: ' . $orderId;
                $this->debugMessage[] = 'DEBUG_LOGGER_UNDEFINED_TYPE: ' . $type;
                break;
        }

        $errorCounter = count($this->errorMessage);

        $log = array();
        if ($this->debug || $errorCounter > 0) {
            $counter = 1;
            foreach ($this->debugMessage as $item) {
                $log['ITEM_' . $counter] = $item;
                $counter++;
            }
            $this->logFunc($type . '_DEBUG', $log, $orderId);
        }

        $log = array();
        if ($errorCounter > 0) {
            $counter = 1;
            foreach ($this->errorMessage as $item) {
                $log['ITEM_' . $counter] = $item;
                $counter++;
            }
            $this->logFunc($type . '_ERROR', $log, $orderId);
        }
    }
106468
function printErrors( summary, errors ) {
  print( chalk.red( summary ));
  errors.forEach( err => print( err.message || err ));
}
759250
def error(cls, message, prefix=True, traceflag=False):
        
        # print (message, prefix)
        message = message or ""
        if prefix:
            text = "ERROR: "
        else:
            text = ""
        if cls.color:
            cls.cprint('FAIL', text, str(message))
        else:
            print(cls.txt_msg(text + str(message)))

        if traceflag and cls.debug:
            trace = traceback.format_exc().strip()
            if trace:
                print()
                print("Trace:")
                print("\n    ".join(str(trace).splitlines()))
                print()
150043
protected function _error()
    {
        $subject = $this->_subject(['success' => false]);

        $this->_trigger('afterVerify', $subject);
        $this->setFlash('error', $subject);
        $this->_trigger('beforeRender', $subject);
    }
730508
private function debug()
    {
        if (!empty($this->_errorCallbackFunction)) {
            $error = array("Error" => $this->_error);
            if (!empty($this->_sql))
                $error["SQL Statement"] = $this->_sql;
            if (!empty($this->_bind))
                $error["Bind Parameters"] = trim(print_r($this->_bind, true));

            $backtrace = debug_backtrace();
            if (!empty($backtrace)) {
                foreach ($backtrace as $info) {
                    if (isset($info["file"]) && $info["file"] != __FILE__)
                        $error["Backtrace_Line_" . $info["line"]] = $info["file"] . " at line " . $info["line"];
                }
            }

            $msg = "";

            $msg .= "SQL Error\n" . str_repeat("-", 50);
            foreach ($error as $key => $val) {
                $msg .= "\n\n$key:\n$val";
            }

            $this->logger->error($msg);
        }
    }
1061132
private function printErrors(iterable $errors): void
    {
        $hasErrors = false;

        foreach ($errors as $error) {
            $hasErrors = true;

            /** @var ErrorInterface $error */
            $paramName  = $error->getParameterName();
            $entry      = empty($paramName) ? 'Validation' : "Param `$paramName`";
            $paramValue = $error->getParameterValue();
            $errorMsg   = $error->getMessageTemplate();
            $context    = $error->getMessageParameters();
            $errorMsg   = MessageFormatter::formatMessage('en', $errorMsg, $context !== null ? $context : []);

            $this->console("$entry failed for `$paramValue` with: $errorMsg" . PHP_EOL);
        }

        if ($hasErrors === false) {
            $this->console('No errors' . PHP_EOL);
        }
    }
1217547
protected function renderError()
    {
        $errMessage = $this->errMessage;
        $errFile = $this->errFile;
        $errLine = $this->errLine;

        \ob_start();
        require __DIR__ . '/templates/trace.error.phtml';

        return \ob_get_clean();
    }
184170
def error(self, msg, repeat_at_end=True):
        """"""
        print(msg, file=sys.stderr)
        if repeat_at_end:
            self.error_log.append(msg)
753672
function () {
        var prefix = 'ERROR';
        this.output(prefix, prefix.red, Array.prototype.slice.call(arguments));
    }