raw
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}} — <pre>{{ err|safe }}</pre>
16 {%- when Err(_) -%}
17 {{status}} — {{ debug }}
18 {%- endmatch -%}
19 {%- when ErrorKind::Custom { status, message } -%}
20 {{status}} — {{ message }}
21 {%- endmatch -%}
22 </div>
23{% endblock %}