You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/10/01 17:01:19 UTC

[airavata] branch develop updated: AIRAVATA-2865 Improving error message

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3f1cb95  AIRAVATA-2865 Improving error message
3f1cb95 is described below

commit 3f1cb95e27d9a56249ff67ab1e95cf28adf2ccdc
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Oct 1 13:00:41 2018 -0400

    AIRAVATA-2865 Improving error message
---
 .../org/apache/airavata/api/server/handler/AiravataServerHandler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index 1cafbd1..99de055 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -5402,7 +5402,7 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
         for (String tokenId : tokenIds) {
             if (!userHasAccessInternal(sharingClient, authzToken, tokenId, ResourcePermissionType.READ)) {
-                throw new AuthorizationException("User does not have permission to a credential token in this resource.");
+                throw new AuthorizationException("User does not have READ permission to credential token " + tokenId + ".");
             }
         }
     }