/**
  * @param \Exception      $exception
  * @param \SS_HTTPRequest $request
  */
 public function reportError(\Exception $exception, \SS_HTTPRequest $request = null)
 {
     if (!$this->envReporter->isLive()) {
         Debug::showError($exception->getCode(), $exception->getMessage(), $exception->getFile(), $exception->getLine(), false, 'Error');
     } else {
         Debug::friendlyError();
     }
 }
 /**
  * @param \Exception      $exception
  * @param \SS_HTTPRequest $request
  */
 public function reportError(\Exception $exception, \SS_HTTPRequest $request = null)
 {
     if (!$this->envReporter->isLive()) {
         $whoops = new Run();
         $whoops->pushHandler($this->prettyHandler)->handleException($exception);
     } else {
         Debug::friendlyError();
     }
 }