protected function renderLtiErrorPage(LtiException $error, $returnLink = true)
    {
        // In regard of the IMS LTI standard, we have to show a back button that refer to the
        // launch_presentation_return_url url param. So we have to retrieve this parameter before trying to start
        // te session
        $consumerLabel = $this->launchData->getToolConsumerName();
        if (!is_null($consumerLabel)) {
            $this->renderer->setData('consumerLabel', $consumerLabel);
        }

        $this->renderer->setData('message', $error->getMessage());
        $this->renderer->setTemplate(Template::getTemplate('error.tpl', 'taoLti'));

        return $this->renderer->render();
    }