wayver's git archive


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

templates/error-old.html@7e0330303eec590c92eb6194f83f04d0e8fb2ea0

raw
Date Commit Message Author Files + -
2026-02-19 17:51 large refactoring wayverd 53 2153 1683
...

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.kind -%}
10      {%- when ErrorKind::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 ErrorKind::Custom { status, message } -%}
20        {{status}} &mdash; {{ message }}
21    {%- endmatch -%}
22  </div>
23{% endblock %}