added success message on re-add resources as well as on error case

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-checker-se-plugin@147109 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-04-21 17:24:51 +00:00
parent 7f7cbb4b45
commit f1fd321f77
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ public class ResourceCheckerPlugin extends Plugin<ResourceCheckerPluginDeclarati
List<String> vosContexts = new ArrayList<String>();
RetrieveContextsList.loadVOs(vosContexts);
accessPointQuery(vosContexts, identifiers , ServiceEndpoint.class);
otherFailures = "\nThe above resources have been readded in the scopes they were missing!.";
}catch(Exception e){
otherFailures = "\n\nMoreover, while trying to re-add the following identifiers " + identifiers + " there was this error " + e.getMessage();
logger.error("While readding the resources this error arose", e);