From a136c1a77dfc3ff93aeb16231bbe4d324b404897 Mon Sep 17 00:00:00 2001 From: Lukas Forer Date: Thu, 21 Dec 2023 09:17:56 +0100 Subject: [PATCH] Improve error message --- src/main/html/webapp/helpers/error-page.stache | 2 ++ src/main/java/cloudgene/mapred/api/v2/server/App.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/html/webapp/helpers/error-page.stache b/src/main/html/webapp/helpers/error-page.stache index 2db87847..1f5ddd92 100644 --- a/src/main/html/webapp/helpers/error-page.stache +++ b/src/main/html/webapp/helpers/error-page.stache @@ -1,4 +1,5 @@


+

{{error.statusText}}

@@ -22,4 +23,5 @@   {{{error.responseText}}} +









diff --git a/src/main/java/cloudgene/mapred/api/v2/server/App.java b/src/main/java/cloudgene/mapred/api/v2/server/App.java index f21d853a..fe40039d 100644 --- a/src/main/java/cloudgene/mapred/api/v2/server/App.java +++ b/src/main/java/cloudgene/mapred/api/v2/server/App.java @@ -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();