views: fix base url to omit scheme for when we connect through a https gateway
[pharext/pharext.org] / app / views / alert.phtml
index 5d0a51644b1bbcb6075f5d5e843556f3fb13f7e6..c8c527f6eb8f5687aa14d7dbd5da379722bfd243 100644 (file)
@@ -1,15 +1,16 @@
 
 <div class="alert alert-danger" role="alert">
-       <strong><?= nl2br($this->e($exception->getMessage())) ?></strong><br>
+       <strong><?= nl2br($this->e($exception->getMessage())) ?></strong>
+       (<?= $exception->getCode() ?>)<br>
        <?php if ($exception instanceof \app\Github\Exception\TokenException) : ?>
-               You might want to try to <a href="<?= $baseUrl->mod("./github/signin") ?>">renew your token</a>!
+               You might want to try to <a href="<?= $baseUrl->mod(":./github/signin") ?>">renew your token</a>!
        <?php endif; ?>
        <?php if ($exception instanceof \app\Github\Exception\StateException) : ?>
-               You might want to try to <a href="<?= $baseUrl->mod("./github/signin") ?>">try again</a>!
+               You might want to try to <a href="<?= $baseUrl->mod(":./github/signin") ?>">try again</a>!
        <?php endif; ?>
 </div>
 
 <?php if (APP_ENVIRONMENT != "production") : ?>
 <h3>Stack Trace</h3>
-<pre><?= $this->e($exception->getTraceAsString()) ?></pre>
+<pre style="display:block; overflow-x: scroll"><?= $this->e($exception) ?></pre>
 <?php endif; ?>