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/02/22 15:10:30 UTC
[airavata] branch group-based-auth updated: Throw exception if
unable to get EntityManager
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch group-based-auth
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/group-based-auth by this push:
new c8bc672 Throw exception if unable to get EntityManager
c8bc672 is described below
commit c8bc672fc5b467c8f67f069a7395a545bf353a04
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Thu Feb 22 10:09:33 2018 -0500
Throw exception if unable to get EntityManager
---
.../registry/core/repositories/appcatalog/AppCatAbstractRepository.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/AppCatAbstractRepository.java b/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/AppCatAbstractRepository.java
index f4b91e0..55637c7 100644
--- a/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/AppCatAbstractRepository.java
+++ b/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/AppCatAbstractRepository.java
@@ -112,7 +112,7 @@ public abstract class AppCatAbstractRepository<T, E, Id> {
try {
entityManager = AppCatalogJPAUtils.getEntityManager();
} catch (Exception e) {
- e.printStackTrace();
+ throw new RuntimeException("Failed to get App Catalog EntityManager", e);
}
try {
entityManager.getTransaction().begin();
--
To stop receiving notification emails like this one, please contact
machristie@apache.org.