Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Dec 21, 2023
1 parent a96c8d0 commit a136c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/html/webapp/helpers/error-page.stache
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<br><br><br>
<div style="margin: 40px">
<h2 class="text-danger text-center">
{{error.statusText}}
</h2>
Expand All @@ -22,4 +23,5 @@
&nbsp;
{{{error.responseText}}}
</h5>
</div>
<br><br><br><br><br><br><br><br><br>
2 changes: 1 addition & 1 deletion src/main/java/cloudgene/mapred/api/v2/server/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Representation getApp() {
Application application = repository.getByIdAndUser(appId, user);

if (application == null) {
return error404("Application '" + appId + "' not found or the request requires user authentication..");
return error404("Authentication Required: Application '" + appId + "' requires user authentication with an email address. To proceed, please upgrade your profile by entering your email address. You can do this by visiting your profile settings and following the steps provided.");
}

WdlApp wdlApp = application.getWdlApp();
Expand Down

0 comments on commit a136c1a

Please sign in to comment.