Skip to content

Commit

Permalink
Fixed a load of issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
KeironO committed Feb 7, 2022
1 parent 87f4242 commit 6697767
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
5 changes: 1 addition & 4 deletions services/web/app/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ def gone(e="410: Gone", json=False):

@errorhandler(Exception)
@errorhandler(InternalServerError.code)
def internal_error(exce):
if os.environ["FLASK_CONFIG"] == "development":
raise exce

def internal_error(e="500: Encountered a bigly error", json=False):
return handle_error(
InternalServerError.code,
InternalServerError.description,
Expand Down
23 changes: 14 additions & 9 deletions services/web/app/templates/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@

<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-11">
<h1>
{{ code }}</h1>
</div>
<div class="col-1">
<h1>{{ smiley }}</h1>
</div>
<h1>Error Code: {{ code }} {{ smiley }}</h1>
<h2>{{ text }}</h2>

</div>


Expand All @@ -24,11 +19,21 @@ <h1>{{ smiley }}</h1>
<div class="container">


<p>{{ text }}</p>
<p>Part of being free and open is our willingness to participate in public bug tracking. We make use of GitHub to help orchestrate development of LImBuS.</p>

<p>If you would like to submit a bug report then you are required to sign up, but don't worry - it's completely free to use.</p>

<p>We understand that many of our users are going to be new to to this, and understand that it may be difficult to submit your first bug. We advise that you follow this simple step-by-step guide to get started:</p>

<ol>
<li>Visit the <a href="https://github.com/AberystwythSystemsBiology/limbus/issues" _target="blank">Issues</a> page on our GitHub.</li>
<li>Search the issue list to ensure that your report hasn't been filed already. If your report has already been filed by someone else, comment that you are experiencing the same problem - so we know that you're also affected.</li>
<li>If you believe your bug is a new one, then feel free to create a "New Issue". Type in a complete summary and description of your issue and submit it.</li>
</ol>

<h2>🤓 Stuff For Our Geeks</h2>

<p>We might ask you for this when trying to help. Just press the blue button on the bottom right and paste it into the Issue to let us help you quicker.</p>

<div class="card" style="margin-bottom: 2rem;">
<div class="card-body">
Expand Down

0 comments on commit 6697767

Please sign in to comment.