modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/ResourceManagerBean.java
| 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9ee338547c8d09cb716b6982c74a11d22af212ec
Author: Jay Shaughnessy <jshaughn(a)redhat.com>
Date: Tue Jun 26 11:04:45 2012 -0400
Provide more verbose Exception information in DEBUG mode.
diff --git
a/modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/ResourceManagerBean.java
b/modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/ResourceManagerBean.java
index f7ae643..dce2e23 100644
---
a/modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/ResourceManagerBean.java
+++
b/modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/ResourceManagerBean.java
@@ -380,8 +380,8 @@ public class ResourceManagerBean implements ResourceManagerLocal,
ResourceManage
// The most likely reason for a failure, although unlikely in itself, is
that newly discovered resources
// are currently being merged into the platform, and associated with the
doomed agent. In this case
// the user must wait until the merge is complete. Make sure the caller
knows about this possibility.
- throw new IllegalStateException(
- "Failed to uninventory platform. This can happen if new
resources were actively being imported. Please wait and try again shortly.");
+ String msg = "Failed to uninventory platform. This can happen if new
resources were actively being imported. Please wait and try again shortly.";
+ throw new IllegalStateException(msg, (log.isDebugEnabled() ? e : null));
}
throw e;
Show replies by date