Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit b4ab92f

Browse files
committed
provide app lookup error reasons (bug 870020)
1 parent ad84a86 commit b4ab92f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

hearth/templates/detail/main.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,19 @@ <h3>{{ _('Loading...') }}</h3>
2323
{% except %}
2424
<div class="detailed-error">
2525
<h2>{{ _('Oh no!') }}</h2>
26-
<p>{{ _('The page you were looking for was not found.') }}</p>
26+
{% if error == 403 %}
27+
<p>{{ _('The app requested is not public.') }}</p>
28+
{% elif error == 404 %}
29+
<p>{{ _('The app requested was not found.') }}</p>
30+
{% elif error == 451 %}
31+
<p>{{ _('The app requested is not available for your region.') }}</p>
32+
{% elif error == 500 %}
33+
<p>{{ _('A server error occurred.') }}</p>
34+
{% endif %}
35+
36+
{% if not error %}
37+
<p>{{ _('A connection error occurred.') }}</p>
38+
{% endif %}
2739
</div>
2840
{% end %}
2941
</section>

0 commit comments

Comments
 (0)