XF\Error should be extendable

  • Thread starter Thread starter DragonByte Tech
  • Start date Start date

DragonByte Tech

Guest
Member
Function calls like $exceptionMessage = $this->adjustExceptionMessage($e->getMessage(), $e); with the code
PHP:

Code:
    protected function adjustExceptionMessage($message, $e)
    {
        return $message;
    }

Implies that XF\Error should be extendable, but it isn't:
PHP:

Code:
        $container['error'] = function ()
        {
            return new Error($this);
        };
 
Top