public function error($text, $flags = 0) { return $this->_notice($text, $flags, 'errors', 'NoticeError'); }
/** * Record an error message in the error log (errors.txt) * * Note: Fatal errors should instead throw a WireException. * * @param string $text * @param int|bool $flags Specify boolean true to also display the error interactively (admin only). * @return $this * */ public function error($text, $flags = 0) { $flags = $flags === true ? Notice::log : $flags | Notice::logOnly; return parent::error($text, $flags); }