wayver's git archive


a simple self-hosted git server
git clone https://git.wayver.dev/bile

templates/error.html@f3f2b40f0ffae5de2e6d3f661e32b582274bae49

raw
Date Commit Message Author Files + -
2026-02-17 21:07 initial mvp wayverd 74 10800 0
...

1{% extends "base.html" %}
2
3{% block content %}
4  <div class="page-title">
5    <h1>Hmm, that did not work.</h1>
6  </div>
7  <br>
8  <div>
9    {%- match self -%}
10      {%- when Self::Failure { status, err } -%}
11        {% let debug = format!("{:?}", err) %}
12        {% let err = ansi_to_html::convert(&debug) %}
13        {%- match err -%}
14          {%- when Ok(err) -%}
15            {{status}} &mdash; <pre>{{ err|safe }}</pre>
16          {%- when Err(_) -%}
17            {{status}} &mdash; {{ debug }}
18        {%- endmatch -%}
19      {%- when Self::Custom { status, message } -%}
20        {{status}} &mdash; {{ message }}
21    {%- endmatch -%}
22  </div>
23{% endblock %}